diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-24 07:45:39 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-24 07:45:39 +0100 |
commit | c60645d3effc7ec04b4e7a413e0a2b552e3fa90e (patch) | |
tree | 150216073ce542817721d6ea20aa6e1d32b848aa /src/HttpServer.cc | |
parent | d2938865f2421e160adc18e86dd7813278035c70 (diff) | |
parent | 61202b565e7c440cae443d71f78b6c506ab60f38 (diff) |
Merge branch 'master' of /pub/repo.git/Balau
Diffstat (limited to 'src/HttpServer.cc')
-rw-r--r-- | src/HttpServer.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/HttpServer.cc b/src/HttpServer.cc index 8eea5bb..43594e9 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -436,15 +436,15 @@ bool Balau::HttpWorker::handleClient() { bool gotOne = false; for (auto j = connVals.begin(); j != connVals.end(); j++) { String t = j->trim(); - if ((t == "close") && (!gotOne)) { + if ((t.lower() == "close") && (!gotOne)) { gotOne = true; persistent = false; - } else if ((t == "keep-alive") && (!gotOne)) { + } else if ((t.lower() == "keep-alive") && (!gotOne)) { gotOne = true; persistent = true; } else if (t == "TE") { Printer::elog(E_HTTPSERVER, "%s got the 'TE' connection marker (which is still unknown)", m_name.to_charp()); - } else if (t == "Upgrade") { + } else if (t.lower() == "upgrade") { upgrade = true; persistent = true; } else { @@ -559,6 +559,7 @@ bool Balau::HttpWorker::handleClient() { auto f = m_server->findAction(uri.to_charp(), host.to_charp()); if (f.action) { + setOkayToEAgain(false); m_strm->detach(); IO<OutputCheck> out(new OutputCheck(m_socket)); Http::Request req; |