You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My server was sending the header as "Sec-Websocket-Accept" and not "Sec-WebSocket-Accept" (notice the capital "s"). The solution is change this line in "WebSocketClient":
if (header.getName().equals("Sec-WebSocket-Accept")) {
to this
if (header.getName().toLowerCase().equals("sec-websocket-accept")) {
According to the HTTP header standards: "Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive."
The text was updated successfully, but these errors were encountered:
raduvarga
changed the title
Client not seeing the "Sec-WeBsocket-Accept" header
Client not seeing the "Sec-WebSocket-Accept" header
Jun 3, 2015
My server was sending the header as "Sec-Websocket-Accept" and not "Sec-WebSocket-Accept" (notice the capital "s"). The solution is change this line in "WebSocketClient":
to this
According to the HTTP header standards: "Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive."
The text was updated successfully, but these errors were encountered: