diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-06-27 12:34:18 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-06-27 12:35:57 +0200 |
| commit | 3a9d796eb9e4f24db84dc1d671f3f9080a57f401 (patch) | |
| tree | 01508961016a81b059721e29a964bfdae9fb103d /src/rpcserver.cpp | |
| parent | rpc-tests: Fix rpcbind_test after 0193fb8 (diff) | |
| parent | minor code format fix in rpc-related files (diff) | |
| download | discoin-3a9d796eb9e4f24db84dc1d671f3f9080a57f401.tar.xz discoin-3a9d796eb9e4f24db84dc1d671f3f9080a57f401.zip | |
Merge pull request #4426
40a158e minor code format fix in rpc-related files (Philip Kaufmann)
Diffstat (limited to 'src/rpcserver.cpp')
| -rw-r--r-- | src/rpcserver.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index 49bc05e5d..54043458d 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -25,10 +25,10 @@ #include <boost/shared_ptr.hpp> #include "json/json_spirit_writer_template.h" -using namespace std; using namespace boost; using namespace boost::asio; using namespace json_spirit; +using namespace std; static std::string strRPCUserColonPass; @@ -897,9 +897,7 @@ void ServiceConnection(AcceptedConnection *conn) if (strURI == "/") { if (!HTTPReq_JSONRPC(conn, strRequest, mapHeaders, fRun)) break; - } - - else { + } else { conn->stream() << HTTPReply(HTTP_NOT_FOUND, "", false) << std::flush; break; } |