mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-29 15:17:13 +02:00
Merge pull request #87 from jlippa/master
RFC 6455 4.2.1.4 case sensitivity fix
This commit is contained in:
@ -590,7 +590,8 @@ void WebSocketsServer::handleHeader(WSclient_t * client, String * headerLine) {
|
||||
String headerValue = headerLine->substring(headerLine->indexOf(':') + 2);
|
||||
|
||||
if(headerName.equalsIgnoreCase("Connection")) {
|
||||
if(headerValue.indexOf("Upgrade") >= 0) {
|
||||
headerValue.toLowerCase();
|
||||
if(headerValue.indexOf("upgrade") >= 0) {
|
||||
client->cIsUpgrade = true;
|
||||
}
|
||||
} else if(headerName.equalsIgnoreCase("Upgrade")) {
|
||||
|
Reference in New Issue
Block a user