summaryrefslogtreecommitdiff
path: root/src/couch_replicator/src/couch_replicator_httpd.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couch_replicator/src/couch_replicator_httpd.erl')
-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").