We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e67636b commit 5a7289bCopy full SHA for 5a7289b
src/main/java/robaho/net/httpserver/websockets/WebSocketHandler.java
@@ -59,7 +59,7 @@ public void handle(HttpExchange exchange) throws IOException {
59
public static boolean isWebsocketRequested(Headers headers) {
60
// check if Upgrade connection
61
String connection = headers.getFirst(Util.HEADER_CONNECTION);
62
- if (connection == null || !connection.toLowerCase().contains(Util.HEADER_CONNECTION_VALUE.toLowerCase())) {
+ if (connection == null || !connection.equalsIgnoreCase(Util.HEADER_CONNECTION_VALUE)) {
63
return false;
64
}
65
// check for proper upgrade tyoe
0 commit comments