diff options
| author | Jeff Garzik <[email protected]> | 2014-06-27 00:10:53 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2014-06-27 00:10:53 -0400 |
| commit | ed5769f536f663a8deb8e8b7a68681cebaa52bdd (patch) | |
| tree | 1fb0ca0333560b8bba9bdbab7d755d412ecc7c2a /src/rpcprotocol.cpp | |
| parent | RPC code movement: separate out JSON-RPC execution logic from HTTP server logic (diff) | |
| download | discoin-ed5769f536f663a8deb8e8b7a68681cebaa52bdd.tar.xz discoin-ed5769f536f663a8deb8e8b7a68681cebaa52bdd.zip | |
Move AcceptedConnection class to rpcserver.h.
Also, add parens to HTTPReply() to assist readability.
Diffstat (limited to 'src/rpcprotocol.cpp')
| -rw-r--r-- | src/rpcprotocol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpcprotocol.cpp b/src/rpcprotocol.cpp index bfa799f84..2cb4a35c4 100644 --- a/src/rpcprotocol.cpp +++ b/src/rpcprotocol.cpp @@ -105,8 +105,8 @@ string HTTPReply(int nStatus, const string& strMsg, bool keepalive, strMsg.size(), contentType, FormatFullVersion(), - headersOnly ? "" : - useInternalContent ? cStatus : strMsg.c_str()); + (headersOnly ? "" : + (useInternalContent ? cStatus : strMsg.c_str()))); } bool ReadHTTPRequestLine(std::basic_istream<char>& stream, int &proto, |