This commit is contained in:
Wayne May
2016-04-30 20:55:59 -07:00
parent 4f55c36c80
commit 10a8d3ca67

View File

@ -393,8 +393,9 @@ void WebSocketsClient::sendHeader(WSclient_t * client) {
String handshake = "GET " + client->cUrl + " HTTP/1.1\r\n"
"Host: " + _host + ":" + _port + "\r\n"
"Upgrade: websocket\r\n"
"Connection: Upgrade\r\n"
"Upgrade: websocket\r\n"
"Origin: file://\r\n"
"User-Agent: arduino-WebSocket-Client\r\n"
"Sec-WebSocket-Version: 13\r\n"
"Sec-WebSocket-Key: " + client->cKey + "\r\n";