8000 Merge pull request #1 from jlippa/jlippa-patch-1 · NodeMCU-Zero/arduinoWebSockets@b168596 · GitHub
[go: up one dir, main page]

Skip to content

Commit b168596

Browse files
committed
Merge pull request Links2004#1 from jlippa/jlippa-patch-1
RFC 6455 4.2.1.4 case sensitivity fix
2 parents 6972f7a + c4e5f5c commit b168596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebSocketsServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ void WebSocketsServer::handleHeader(WSclient_t * client, String * headerLine) {
590590
String headerValue = headerLine->substring(headerLine->indexOf(':') + 2);
591591

592592
if(headerName.equalsIgnoreCase("Connection")) {
593-
if(headerValue.indexOf("Upgrade") >= 0) {
593+
if(headerValue.equalsIgnoreCase("Upgrade")) {
594594
client->cIsUpgrade = true;
595595
}
596596
} else if(headerName.equalsIgnoreCase("Upgrade")) {

0 commit comments

Comments
 (0)
0