X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpinput.cpp;h=49501831fa7df2805eead2a172b5dab5d77a3320;hb=71fc5575037bead8b6e927a1fffd199e4fc4514b;hp=457c2160b241709b042ea473ec3a0c8803f3581e;hpb=8f44468bfe4a1d1607b0ab7044c3071605ae1fa7;p=cubemap diff --git a/httpinput.cpp b/httpinput.cpp index 457c216..4950183 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include @@ -200,6 +199,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();