gotosocial/internal/api/client/streaming
Leah Neukirchen 4697271cef
[bugfix] send back Sec-Websocket-Protocol header for streaming WebSocket (#3169)
* [bugfix] send back Sec-Websocket-Protocol header for streaming WebSocket

Chrome expects the selected Sec-Websocket-Protocol to be sent back
on the WebSocket upgrade request (RFC6455 1.9).

* fiddle a bit to avoid getting headers multiple times

* add some explanatory notes

---------

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-08-06 11:52:27 +02:00
..
stream.go [bugfix] send back Sec-Websocket-Protocol header for streaming WebSocket (#3169) 2024-08-06 11:52:27 +02:00
streaming_test.go [bugfix] send back Sec-Websocket-Protocol header for streaming WebSocket (#3169) 2024-08-06 11:52:27 +02:00
streaming.go [chore/bugfix] Break Websockets logic into smaller read/write functions, don't log expected errors (#1932) 2023-07-04 12:55:10 +02:00