diff options
| author | kazcw <[email protected]> | 2014-06-28 18:14:36 -0700 |
|---|---|---|
| committer | kazcw <[email protected]> | 2014-06-28 19:16:15 -0700 |
| commit | 16f33f163d4e2c10320a96a22bbab71c9a0df195 (patch) | |
| tree | 79b08ef53736fad40976c529142530cd42689f1f /src/util.cpp | |
| parent | Merge pull request #4436 (diff) | |
| download | discoin-16f33f163d4e2c10320a96a22bbab71c9a0df195.tar.xz discoin-16f33f163d4e2c10320a96a22bbab71c9a0df195.zip | |
fix RPC error replies
After pull #4288, RPC messages indicating errors have a Content-Length unrelated
to their actual contents, rendering bitcoin-cli and curl unable to decode the
reply.
This patch sets the Content-Length field based on the actual content returned.
Additionally, pull #4288 clobbered the error descriptions provided in
ErrorReply, which bitcoin-cli relies upon; this patch moves #4288 http-error
descriptions to an HTTPError method, allowing HTTPReply to pass content on
unchanged.
Diffstat (limited to 'src/util.cpp')
0 files changed, 0 insertions, 0 deletions