mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-29 15:17:13 +02:00
Update WebSocketsClient.cpp
fix a issue relating to a comparison that fails due to capitalisation of the word
This commit is contained in:
@ -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")) {
|
||||
|
Reference in New Issue
Block a user