mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 20:59:45 +01:00
add HTTP/1.1 version to HTTPRequest for client WebSocket, as this is required for most servers
This commit is contained in:
@@ -120,7 +120,7 @@ void WebSocketTest::testWebSocket()
|
|||||||
Poco::Thread::sleep(200);
|
Poco::Thread::sleep(200);
|
||||||
|
|
||||||
HTTPClientSession cs("localhost", ss.address().port());
|
HTTPClientSession cs("localhost", ss.address().port());
|
||||||
HTTPRequest request(HTTPRequest::HTTP_GET, "/ws");
|
HTTPRequest request(HTTPRequest::HTTP_GET, "/ws", HTTPRequest::HTTP_1_1);
|
||||||
HTTPResponse response;
|
HTTPResponse response;
|
||||||
WebSocket ws(cs, request, response);
|
WebSocket ws(cs, request, response);
|
||||||
|
|
||||||
@@ -187,7 +187,7 @@ void WebSocketTest::testWebSocketLarge()
|
|||||||
Poco::Thread::sleep(200);
|
Poco::Thread::sleep(200);
|
||||||
|
|
||||||
HTTPClientSession cs("localhost", ss.address().port());
|
HTTPClientSession cs("localhost", ss.address().port());
|
||||||
HTTPRequest request(HTTPRequest::HTTP_GET, "/ws");
|
HTTPRequest request(HTTPRequest::HTTP_GET, "/ws", HTTPRequest::HTTP_1_1);
|
||||||
HTTPResponse response;
|
HTTPResponse response;
|
||||||
WebSocket ws(cs, request, response);
|
WebSocket ws(cs, request, response);
|
||||||
ws.setSendBufferSize(msgSize);
|
ws.setSendBufferSize(msgSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user