From 7c8b1d7aaad48811bffd8dfb9304bcc281b7167e Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 27 Apr 2016 11:04:14 +0200 Subject: [PATCH] lib/fetch/http.c: HTTP CONNECT needs two \r\ns --- lib/fetch/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fetch/http.c b/lib/fetch/http.c index 433bd111..a6f2f5a8 100644 --- a/lib/fetch/http.c +++ b/lib/fetch/http.c @@ -733,7 +733,7 @@ http_connect(struct url *URL, struct url *purl, const char *flags, int *cached) /* fetch_connect() has already set an error code */ return (NULL); if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 && purl) { - http_cmd(conn, "CONNECT %s:%d HTTP/1.1\r\n", + http_cmd(conn, "CONNECT %s:%d HTTP/1.1\r\n\r\n", URL->host, URL->port); if (http_get_reply(conn) != HTTP_OK) { fetch_close(conn);