From adada04a20ac5a173b1d3c1180fde5218ef4a476 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 9 Jul 2018 14:16:06 +0200 Subject: [PATCH] Use HTTP/1.1 when using HTTP proxies The "Connection" and "Host" fields were already always provided anyway. --- client/spa_comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/spa_comm.c b/client/spa_comm.c index 870796fa..d7ba9a3b 100644 --- a/client/spa_comm.c +++ b/client/spa_comm.c @@ -587,7 +587,7 @@ send_spa_packet_http(const char *spa_data, const int sd_len, options->spa_dst_port = proxy_port; snprintf(http_buf, HTTP_MAX_REQUEST_LEN, - "GET http://%s/%s HTTP/1.0\r\nUser-Agent: %s\r\nAccept: */*\r\n" + "GET http://%s/%s HTTP/1.1\r\nUser-Agent: %s\r\nAccept: */*\r\n" "Host: %s\r\nConnection: close\r\n\r\n", options->spa_server_str, spa_data_copy,