diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2011-10-04 00:42:36 -0400 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-10-05 10:15:07 -0400 |
commit | 3552497ae52b78f799be3d34d7a874d610ee6e71 (patch) | |
tree | 314377ef6ee2c30238eb33ea94abbc7daeaeccc5 | |
parent | 5c5d310a0a94ec00d08c52637d38f3344a6e2c6f (diff) |
Send "Connection: close" HTTP header with JSON-RPC requests (client)
-rw-r--r-- | src/bitcoinrpc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index cd546abde8..1912e76fb3 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -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"; |