File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -426,11 +426,8 @@ void WebSocketsClient::sendHeader(WSclient_t * client) {
426
426
transport = " &transport=websocket&sid=" + client->cSessionId ;
427
427
}
428
428
handshake = " GET " + client->cUrl + transport + " HTTP/1.1\r\n "
429
- " Host: " + _host + " :" + _port + " \r\n "
430
429
" Connection: Upgrade\r\n "
431
430
" Upgrade: websocket\r\n "
432
- " Origin: file://\r\n "
433
- " User-Agent: arduino-WebSocket-Client\r\n "
434
431
" Sec-WebSocket-Version: 13\r\n "
435
432
" Sec-WebSocket-Key: " + client->cKey + " \r\n " ;
436
433
@@ -460,7 +457,7 @@ void WebSocketsClient::sendHeader(WSclient_t * client) {
460
457
}
461
458
462
459
handshake += " \r\n " ;
463
-
460
+ DEBUG_WEBSOCKETS ( " [WS-Client][sendHeader] handshake %s " , handshake. c_str ());
464
461
client->tcp ->write (handshake.c_str (), handshake.length ());
465
462
466
463
#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266_ASYNC)
You can’t perform that action at this time.
0 commit comments