You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2014/10/10 19:23:55 UTC
couch-dbupdates commit: updated refs/heads/master to a17277d
Repository: couchdb-couch-dbupdates
Updated Branches:
refs/heads/master 690c8c2cb -> a17277d77
Fix dbupdates http request handler
There is no actually handle_req/2 call while case for handling non GET requests
is missed.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-dbupdates/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-dbupdates/commit/a17277d7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-dbupdates/tree/a17277d7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-dbupdates/diff/a17277d7
Branch: refs/heads/master
Commit: a17277d774d7ea88f36236afedb82e266bdda7dc
Parents: 690c8c2
Author: Alexander Shorin <kx...@apache.org>
Authored: Fri Oct 10 19:47:12 2014 +0400
Committer: Alexander Shorin <kx...@apache.org>
Committed: Fri Oct 10 21:22:45 2014 +0400
----------------------------------------------------------------------
src/couch_dbupdates_httpd.erl | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-dbupdates/blob/a17277d7/src/couch_dbupdates_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_dbupdates_httpd.erl b/src/couch_dbupdates_httpd.erl
index ec0c4d6..8a7f80f 100644
--- a/src/couch_dbupdates_httpd.erl
+++ b/src/couch_dbupdates_httpd.erl
@@ -37,9 +37,8 @@ handle_req(#httpd{method='GET'}=Req) ->
State = #state{resp=Resp, feed=Feed},
couch_dbupdates:handle_dbupdates(fun handle_update/2,
- State, Options).
-
-handle_req(Req, _Db) ->
+ State, Options);
+handle_req(Req) ->
couch_httpd:send_method_not_allowed(Req, "GET").
handle_update(stop, #state{resp=Resp}) ->