]> git.sesse.net Git - cubemap/blobdiff - httpinput.cpp
Support HTTP/1.1 persistent connections (not that useful yet).
[cubemap] / httpinput.cpp
index 05ff37ce4ab2c1032a251a8a574d1741c854f17d..4b34e85ddd146d5a2dd240aea551bd9498757f14 100644 (file)
@@ -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";