aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-11-18 10:27:45 -0500
committerJeff Garzik <jgarzik@bitpay.com>2014-11-18 10:27:45 -0500
commit7715c847472f565ca79429db0d8505f126617878 (patch)
treee3399c00b56767c774081412e02874e038b8042a /src/rpcserver.cpp
parent9445b876bde34c0cc4ca9cb16fbd763fe877b8a9 (diff)
HTTP REST: minor fixes
1) const-ify internal helper ParseHashStr() 2) use HTTPError() helper when returning HTTP_NOT_FOUND
Diffstat (limited to 'src/rpcserver.cpp')
-rw-r--r--src/rpcserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp
index d072f18e36..8b042e6003 100644
--- a/src/rpcserver.cpp
+++ b/src/rpcserver.cpp
@@ -957,7 +957,7 @@ void ServiceConnection(AcceptedConnection *conn)
break;
} else {
- conn->stream() << HTTPReply(HTTP_NOT_FOUND, "", false) << std::flush;
+ conn->stream() << HTTPError(HTTP_NOT_FOUND, false) << std::flush;
break;
}
}