summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsts <sts>2017-11-08 09:11:00 +0200
committerNick Vatamaniuc <nickva@users.noreply.github.com>2017-11-08 21:42:01 -0500
commit5d92986ad177e902368c3e97261f09c9867ea784 (patch)
tree1164ec371cad3c94918fa6c4b61edddb54c31f39
parent7fd671982ca1cf052a47ce16a442d56f7ff405ec (diff)
downloadcouchdb-5d92986ad177e902368c3e97261f09c9867ea784.tar.gz
404 status for non using uri in _scheduler (#953)
-rw-r--r--src/couch_replicator/src/couch_replicator_httpd.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couch_replicator/src/couch_replicator_httpd.erl b/src/couch_replicator/src/couch_replicator_httpd.erl
index 0f78ce1d5..ebab1a614 100644
--- a/src/couch_replicator/src/couch_replicator_httpd.erl
+++ b/src/couch_replicator/src/couch_replicator_httpd.erl
@@ -82,6 +82,8 @@ handle_scheduler_req(#httpd{method='GET', path_parts=[_,<<"docs">>|Unquoted]}
{error, invalid} ->
throw(bad_request)
end;
+handle_scheduler_req(#httpd{method='GET'} = Req) ->
+ send_json(Req, 404, {[{error, <<"not found">>}]});
handle_scheduler_req(Req) ->
send_method_not_allowed(Req, "GET,HEAD").