Mercurial > hg > orthanc
diff Core/HttpServer/HttpOutput.cpp @ 3173:096f4a29f223
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Jan 2019 10:34:00 +0100 |
parents | 81cd9a4f3018 |
children | 6d558598d713 |
line wrap: on
line diff
--- a/Core/HttpServer/HttpOutput.cpp Tue Jan 29 10:32:21 2019 +0100 +++ b/Core/HttpServer/HttpOutput.cpp Tue Jan 29 10:34:00 2019 +0100 @@ -177,6 +177,10 @@ { s += "Connection: keep-alive\r\n"; } + else + { + s += "Connection: close\r\n"; + } for (std::list<std::string>::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<std::string>::const_iterator