Skip to content

Commit 11273d9

Browse files
authored
Merge pull request Links2004#378 from Niklas04/patch-1
Update WebSocketsClient.cpp
2 parents 3f5c7e1 + 82e3c57 commit 11273d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebSocketsClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ void WebSocketsClient::handleHeader(WSclient_t * client) {
403403
String headerValue = headerLine.substring(headerLine.indexOf(':') + 2);
404404

405405
if(headerName.equalsIgnoreCase("Connection")) {
406-
if(headerValue.indexOf("Upgrade") >= 0) {
406+
if(headerValue.equalsIgnoreCase("Upgrade")) {
407407
client->cIsUpgrade = true;
408408
}
409409
} else if(headerName.equalsIgnoreCase("Upgrade")) {

0 commit comments

Comments
 (0)