Send "Connection: close" HTTP header with JSON-RPC requests (client)

This commit is contained in:
Luke Dashjr 2011-10-04 00:42:36 -04:00 committed by Gavin Andresen
parent 5c5d310a0a
commit 3552497ae5
1 changed files with 1 additions and 0 deletions

View File

@ -1826,6 +1826,7 @@ string HTTPPost(const string& strMsg, const map<string,string>& mapRequestHeader
<< "Host: 127.0.0.1\r\n"
<< "Content-Type: application/json\r\n"
<< "Content-Length: " << strMsg.size() << "\r\n"
<< "Connection: close\r\n"
<< "Accept: application/json\r\n";
BOOST_FOREACH(const PAIRTYPE(string, string)& item, mapRequestHeaders)
s << item.first << ": " << item.second << "\r\n";