mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
test_upgrade{,_large}: fixed HTTP/1.1 compatibility
This commit is contained in:
@@ -720,7 +720,7 @@ run_usock_client (void *cls)
|
||||
struct wr_socket *sock = cls;
|
||||
|
||||
send_all (sock,
|
||||
"GET / HTTP/1.1\r\nConnection: Upgrade\r\n\r\n");
|
||||
"GET / HTTP/1.1\r\nHost: localhost\r\nConnection: Upgrade\r\n\r\n");
|
||||
recv_hdr (sock);
|
||||
recv_all (sock,
|
||||
"Hello");
|
||||
|
||||
@@ -907,7 +907,7 @@ run_usock_client (void *cls)
|
||||
struct wr_socket *sock = cls;
|
||||
|
||||
send_all (sock,
|
||||
"GET / HTTP/1.1\r\nConnection: Upgrade\r\n\r\n");
|
||||
"GET / HTTP/1.1\r\nHost: localhost\r\nConnection: Upgrade\r\n\r\n");
|
||||
recv_hdr (sock);
|
||||
recv_all (sock,
|
||||
LARGE_STRING);
|
||||
|
||||
Reference in New Issue
Block a user