mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 07:17:53 +00:00
Process "Connection: close" header in non-JSON requests
This commit is contained in:
parent
5379d2a7de
commit
724d32c852
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user