X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=httpinput.cpp;h=da672edc3689a14cb4707f29f060d9db73183bad;hp=457c2160b241709b042ea473ec3a0c8803f3581e;hb=b9f87872a42f32818805f3c2520555f2d6e2928d;hpb=1bc0cd3639cfef1403c74f1d82960df3e8692149 diff --git a/httpinput.cpp b/httpinput.cpp index 457c216..da672ed 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -200,6 +200,11 @@ bool HTTPInput::parse_response(const std::string &request) } } + // Set “Connection: close”. + // TODO: Make case-insensitive. + parameters.erase("Connection"); + parameters.insert(make_pair("Connection", "close")); + // Construct the new HTTP header. http_header = "HTTP/1.0 200 OK\r\n"; for (multimap::iterator it = parameters.begin();