From 87f8ee21b1054c4efeb11858f911dc5cc9cc29e5 Mon Sep 17 00:00:00 2001 From: Fred Nicolson Date: Mon, 26 Nov 2018 16:40:18 +0000 Subject: [PATCH] Fix missing \r after Connection:keep-alive header in HTTP requests --- src/HttpRequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpRequest.cpp b/src/HttpRequest.cpp index 94e307d..c469e04 100644 --- a/src/HttpRequest.cpp +++ b/src/HttpRequest.cpp @@ -142,7 +142,7 @@ namespace fr //Add in required headers if they're missing if(header_data.find("Connection") == header_data.end()) - request += "Connection: keep-alive\n"; + request += "Connection: keep-alive\r\n"; if(header_data.find("Host") == header_data.end()) request += "Host: " + host + "\r\n"; if(!body.empty())