Open sebokmarton opened 9 years ago
Hi,
The HTTP response for the WebSocket handshake contains the Transfer-Encoding: chunked header that is invalid in this context (see https://issues.apache.org/bugzilla/show_bug.cgi?id=54067, https://issues.apache.org/bugzilla/show_bug.cgi?id=56707) and it makes the .NET WebSocket client swallow the first message from the server.
Transfer-Encoding: chunked
A quick fix is adding response.getHeaders().set("Transfer-Encoding", ""); to the WebSocketImpl constructor, but I can't see its further effects in library. Could you please check if it's not causing any trouble?
response.getHeaders().set("Transfer-Encoding", "");
WebSocketImpl
Thank you very much!
Cheers, Marton
The Transfer-Encoding header is not required for Web Sockets.
Please update library.
Regards, Brent
Hi,
The HTTP response for the WebSocket handshake contains the
Transfer-Encoding: chunked
header that is invalid in this context (see https://issues.apache.org/bugzilla/show_bug.cgi?id=54067, https://issues.apache.org/bugzilla/show_bug.cgi?id=56707) and it makes the .NET WebSocket client swallow the first message from the server.A quick fix is adding
response.getHeaders().set("Transfer-Encoding", "");
to theWebSocketImpl
constructor, but I can't see its further effects in library. Could you please check if it's not causing any trouble?Thank you very much!
Cheers, Marton