From 40001534edaa80baf3832540aa375fc4986ee0d1 Mon Sep 17 00:00:00 2001 From: Fred Nicolson Date: Sun, 30 Jul 2017 19:06:56 +0100 Subject: [PATCH] Changed HttpResponse default connection type to keep-alive --- src/HttpResponse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpResponse.cpp b/src/HttpResponse.cpp index 2661a36..299eada 100644 --- a/src/HttpResponse.cpp +++ b/src/HttpResponse.cpp @@ -56,7 +56,7 @@ namespace fr //Add in required headers if they're missing if(header_data.find("connection") == header_data.end()) - response += "connection: close_socket\r\n"; + response += "connection: keep-alive\r\n"; if(header_data.find("content-type") == header_data.end()) response += "content-type: text/html\r\n"; if(header_data.find("content-length") == header_data.end())