File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -427,6 +427,7 @@ void WebSocketsClient::sendHeader(WSclient_t * client) {
427
427
transport = " &transport=websocket&sid=" + client->cSessionId ;
428
428
}
429
429
handshake = " GET " + client->cUrl + transport + " HTTP/1.1\r\n "
430
+ " Host: " + _host + " :" + _port + " \r\n "
430
431
" Connection: Upgrade\r\n "
431
432
" Upgrade: websocket\r\n "
432
433
" Sec-WebSocket-Version: 13\r\n "
@@ -442,11 +443,11 @@ void WebSocketsClient::sendHeader(WSclient_t * client) {
442
443
443
444
} else {
444
445
handshake = " GET " + client->cUrl + " &transport=polling HTTP/1.1\r\n "
446
+ " Host: " + _host + " :" + _port + " \r\n "
445
447
" Connection: keep-alive\r\n " ;
446
448
}
447
449
448
- handshake += " Host: " + _host + " :" + _port + " \r\n "
449
- " Origin: file://\r\n "
450
+ handshake += " Origin: file://\r\n "
450
451
" User-Agent: arduino-WebSocket-Client\r\n " ;
451
452
452
453
if (client->base64Authorization .length () > 0 ) {
You can’t perform that action at this time.
0 commit comments