aboutsummaryrefslogtreecommitdiff
path: root/src/rpcprotocol.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-01-23 17:25:12 +0100
committerWladimir J. van der Laan <[email protected]>2014-01-23 17:25:39 +0100
commit6403c6c835a3302a6ee575576be93e4104a39685 (patch)
treeeeca53e065947846648d9373f240d593c0c0ecfc /src/rpcprotocol.cpp
parentbuild: fix typo in configure help message (diff)
parentRemove redundant .c_str()s (diff)
downloaddiscoin-6403c6c835a3302a6ee575576be93e4104a39685.tar.xz
discoin-6403c6c835a3302a6ee575576be93e4104a39685.zip
Merge pull request #3549
7d9d134 Remove redundant .c_str()s (Wladimir J. van der Laan) b77dfdc Typesafe strprintf/error/LogPrint functions (Wladimir J. van der Laan)
Diffstat (limited to 'src/rpcprotocol.cpp')
-rw-r--r--src/rpcprotocol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rpcprotocol.cpp b/src/rpcprotocol.cpp
index 4a2241eda..0632bdae6 100644
--- a/src/rpcprotocol.cpp
+++ b/src/rpcprotocol.cpp
@@ -81,7 +81,7 @@ string HTTPReply(int nStatus, const string& strMsg, bool keepalive)
"<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>\r\n"
"</HEAD>\r\n"
"<BODY><H1>401 Unauthorized.</H1></BODY>\r\n"
- "</HTML>\r\n", rfc1123Time().c_str(), FormatFullVersion().c_str());
+ "</HTML>\r\n", rfc1123Time(), FormatFullVersion());
const char *cStatus;
if (nStatus == HTTP_OK) cStatus = "OK";
else if (nStatus == HTTP_BAD_REQUEST) cStatus = "Bad Request";
@@ -100,11 +100,11 @@ string HTTPReply(int nStatus, const string& strMsg, bool keepalive)
"%s",
nStatus,
cStatus,
- rfc1123Time().c_str(),
+ rfc1123Time(),
keepalive ? "keep-alive" : "close",
strMsg.size(),
- FormatFullVersion().c_str(),
- strMsg.c_str());
+ FormatFullVersion(),
+ strMsg);
}
bool ReadHTTPRequestLine(std::basic_istream<char>& stream, int &proto,