mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 06:48:12 +09: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
@ -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 New Issue
Block a user