Skip to content

Commit

Permalink
Updates after review.
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Jan 11, 2024
1 parent ea5db96 commit b129033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ private boolean isPreflight(Request request)

private boolean isWebSocketUpgrade(Request request)
{
return request.getHeaders().contains(HttpHeader.SEC_WEBSOCKET_VERSION, "13");
return request.getHeaders().contains(HttpHeader.SEC_WEBSOCKET_VERSION);
}

private void handlePreflightResponse(String origins, Response response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ public void testDeliverWebSocketUpgradeRequest() throws Exception
Host: localhost\r
Connection: Upgrade\r
Upgrade: websocket\r
Sec-WebSocket-Version: 13\r
Origin: http://localhost\r
\r
""";
Expand All @@ -587,6 +588,7 @@ public void testDoNotDeliverNonMatchingWebSocketUpgradeRequest() throws Exceptio
Host: localhost\r
Connection: Upgrade\r
Upgrade: websocket\r
Sec-WebSocket-Version: 13
Origin: http://127.0.0.1\r
\r
""";
Expand Down

0 comments on commit b129033

Please sign in to comment.