Merge pull request #299 from dryabov/patch-8

Process "Connection: close" header in non-JSON requests
This commit is contained in:
miguelfreitas 2014-11-28 16:41:28 -02:00
commit 6e86ec1fa0

View File

@ -997,6 +997,9 @@ void ServiceConnection(AcceptedConnection *conn)
break;
}
if (mapHeaders["connection"] == "close")
fRun = false;
if(strMethod == "GET" && strURI == "/")
strURI="/home.html";
@ -1037,9 +1040,6 @@ void ServiceConnection(AcceptedConnection *conn)
continue;
}
if (mapHeaders["connection"] == "close")
fRun = false;
if(strMethod == "GET" && strURI.substr(0, 4) == "/rss" && !GetBoolArg("-public_server_mode",false))
{
string rssOutput;