Open
Description
Describe the bug
In
, headers are copied from the upstream websocket connection to thehttpx_ws
call. This can lead to a desync in the negotiated options. For example, passing through sec-websocket-extensions: permessage-deflate
from upstream to downstream may cause the downstream host to compress websocket messages, which httpx_ws
will not expect and fail.
Probably all sec-websocket*
headers should not be passed to downstream.
Observed on fastapi-proxy-lib 0.2.0