Skip to content

Client not seeing the "Sec-WebSocket-Accept" header #23

@raduvarga

Description

@raduvarga

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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions