Browse Source

Process "Connection: close" header in non-JSON requests

miguelfreitas
Denis Ryabov 10 years ago
parent
commit
724d32c852
  1. 6
      src/bitcoinrpc.cpp

6
src/bitcoinrpc.cpp

@ -997,6 +997,9 @@ void ServiceConnection(AcceptedConnection *conn) @@ -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) @@ -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…
Cancel
Save