summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbenoitc <bchesneau@gmail.com>2014-02-16 13:26:06 +0100
committerbenoitc <bchesneau@gmail.com>2014-02-16 13:37:24 +0100
commitaed283fd79f7d3e90b1c7339aa2bba30da296864 (patch)
treeb78ac62cbb4719f2cca43ef529b18babf70769c6
parente389a8ba2a79da2669b536ca242b5dfdee4faba3 (diff)
downloadcouchdb-aed283fd79f7d3e90b1c7339aa2bba30da296864.tar.gz
fix handle_req
handle-req/2 was useless. Instead we wanted handle_req/1 to tell to others which method is allowed.
-rw-r--r--src/couch_dbupdates/src/couch_dbupdates_httpd.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couch_dbupdates/src/couch_dbupdates_httpd.erl b/src/couch_dbupdates/src/couch_dbupdates_httpd.erl
index 96058d39e..afd99a5d5 100644
--- a/src/couch_dbupdates/src/couch_dbupdates_httpd.erl
+++ b/src/couch_dbupdates/src/couch_dbupdates_httpd.erl
@@ -37,9 +37,9 @@ handle_req(#httpd{method='GET'}=Req) ->
State = #state{resp=Resp, feed=Feed},
couch_dbupdates:handle_dbupdates(fun handle_update/2,
- State, Options).
+ State, Options);
-handle_req(Req, _Db) ->
+handle_req(_Req) ->
couch_httpd:send_method_not_allowed(Req, "GET").
handle_update(stop, #state{resp=Resp}) ->