Update WebSocketsClient.cpp

fix a issue relating to a comparison that fails due to capitalisation of the word
This commit is contained in:
Niklas04
2018-10-09 21:28:02 +02:00
committed by GitHub
parent 3f5c7e1c46
commit 82e3c57006

View File

@ -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")) {