mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-30 07:37:14 +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);
|
String headerValue = headerLine.substring(headerLine.indexOf(':') + 2);
|
||||||
|
|
||||||
if(headerName.equalsIgnoreCase("Connection")) {
|
if(headerName.equalsIgnoreCase("Connection")) {
|
||||||
if(headerValue.indexOf("Upgrade") >= 0) {
|
if(headerValue.equalsIgnoreCase("Upgrade")) {
|
||||||
client->cIsUpgrade = true;
|
client->cIsUpgrade = true;
|
||||||
}
|
}
|
||||||
} else if(headerName.equalsIgnoreCase("Upgrade")) {
|
} else if(headerName.equalsIgnoreCase("Upgrade")) {
|
||||||
|
Reference in New Issue
Block a user