mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-07 16:36:48 +01:00
add HTTP/1.1 version to HTTPRequest for client WebSocket, as this is required for most servers
This commit is contained in:
parent
df36ae6a04
commit
df060cecbf
@ -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);
|
||||||
|
|
||||||
@ -201,7 +201,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);
|
||||||
@ -233,7 +233,7 @@ void WebSocketTest::testOneLargeFrame(int msgSize)
|
|||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user