There was an error while loading. Please reload this page.
2 parents 3f5c7e1 + 82e3c57 commit 11273d9Copy full SHA for 11273d9
src/WebSocketsClient.cpp
@@ -403,7 +403,7 @@ void WebSocketsClient::handleHeader(WSclient_t * client) {
403
String headerValue = headerLine.substring(headerLine.indexOf(':') + 2);
404
405
if(headerName.equalsIgnoreCase("Connection")) {
406
- if(headerValue.indexOf("Upgrade") >= 0) {
+ if(headerValue.equalsIgnoreCase("Upgrade")) {
407
client->cIsUpgrade = true;
408
}
409
} else if(headerName.equalsIgnoreCase("Upgrade")) {
0 commit comments