mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
[backend] Correctly return selected protocol for streaming API
This fixes compatibility with mastodon webclients in Google Chrome & derivatives
This commit is contained in:
parent
06abf64594
commit
ef98c86958
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ export const initializeStreamingServer = (server: http.Server) => {
|
|||
return;
|
||||
}
|
||||
|
||||
const connection = request.accept();
|
||||
const connection = request.accept(request.requestedProtocols[0] ?? undefined);
|
||||
|
||||
const ev = new EventEmitter();
|
||||
|
||||
|
|
Loading…
Reference in a new issue