Merge pull request #378 from Niklas04/patch-1

Update WebSocketsClient.cpp
This commit is contained in:
Markus
2019-05-30 16:48:05 +02:00
committed by GitHub

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