Closed sujithhanwha closed 2 years ago
The problem doesn't seem to be the lowercase sec-websocket-accept
. As you can see in the error message, websockets properly read the value qELEzTXDs0AxcFlAJmMjCSwpgIc=
and then complained about it.
Could you provide the sec-websocket-key
value from the request? Probably you need to recreate the problem and log both values. Enabling debug logs in websockets is an easy way to capture everything: https://websockets.readthedocs.io/en/stable/topics/logging.html#configure-logging
Thank you Augustin for quick response, as you've mentioned it was issue with the Accept key response from the proxy server which was mishandling it.
According to RFC 2616 section 4.2 Message Headers: “Field names are case-insensitive.”
With the above response where the headers are in lower case, client is failing with below error message
Should this check be made case insensitive in websockets package? or the server response is incorrect ?