git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5c5d310
)
Send "Connection: close" HTTP header with JSON-RPC requests (client)
author
Luke Dashjr
<luke-jr+git@utopios.org>
Tue, 4 Oct 2011 04:42:36 +0000 (
00:42
-0400)
committer
Gavin Andresen
<gavinandresen@gmail.com>
Wed, 5 Oct 2011 14:15:07 +0000 (10:15 -0400)
src/bitcoinrpc.cpp
patch
|
blob
|
history
diff --git
a/src/bitcoinrpc.cpp
b/src/bitcoinrpc.cpp
index
cd546ab
..
1912e76
100644
(file)
--- 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";