# HG changeset patch # User Sebastien Jodogne # Date 1548601176 -3600 # Node ID 81cd9a4f30186e6a08beac91e8a8d32837098523 # Parent 04336d6da2c672257ad96eebed0dea0d7aa0d69b always add HTTP header "Connection: close" if keep-alive is disabled diff -r 04336d6da2c6 -r 81cd9a4f3018 Core/HttpServer/HttpOutput.cpp --- a/Core/HttpServer/HttpOutput.cpp Fri Jan 25 16:43:24 2019 +0100 +++ b/Core/HttpServer/HttpOutput.cpp Sun Jan 27 15:59:36 2019 +0100 @@ -177,6 +177,10 @@ { s += "Connection: keep-alive\r\n"; } + else + { + s += "Connection: close\r\n"; + } for (std::list::const_iterator it = headers_.begin(); it != headers_.end(); ++it) @@ -435,6 +439,10 @@ header += "Connection: close\r\n"; #endif } + else + { + header += "Connection: close\r\n"; + } // Possibly add the cookies for (std::list::const_iterator