From 82e3c570069e92af7e1b58afc8e9bb120b0fddf3 Mon Sep 17 00:00:00 2001 From: Niklas04 <33813894+Niklas04@users.noreply.github.com> Date: Tue, 9 Oct 2018 21:28:02 +0200 Subject: [PATCH] Update WebSocketsClient.cpp fix a issue relating to a comparison that fails due to capitalisation of the word --- src/WebSocketsClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebSocketsClient.cpp b/src/WebSocketsClient.cpp index d398aad..dca8799 100644 --- a/src/WebSocketsClient.cpp +++ b/src/WebSocketsClient.cpp @@ -403,7 +403,7 @@ void WebSocketsClient::handleHeader(WSclient_t * client) { String headerValue = headerLine.substring(headerLine.indexOf(':') + 2); if(headerName.equalsIgnoreCase("Connection")) { - if(headerValue.indexOf("Upgrade") >= 0) { + if(headerValue.equalsIgnoreCase("Upgrade")) { client->cIsUpgrade = true; } } else if(headerName.equalsIgnoreCase("Upgrade")) {