mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01: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