X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=httpinput.cpp;fp=httpinput.cpp;h=4b34e85ddd146d5a2dd240aea551bd9498757f14;hp=05ff37ce4ab2c1032a251a8a574d1741c854f17d;hb=1135808bf9df44b879994e6dac07a31eb78c2fdb;hpb=a8c43c314bbda25fa53b487042b4f8f85cb34c2d diff --git a/httpinput.cpp b/httpinput.cpp index 05ff37c..4b34e85 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -271,10 +271,9 @@ bool HTTPInput::parse_response(const string &request) } } - // Set “Connection: close”. + // Erase “Connection: close”; we'll set it on the sending side if needed. // 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";