couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couch-dbupdates commit: updated refs/heads/master to a17277d
Date Fri, 10 Oct 2014 17:23:55 GMT
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 <kxepal@apache.org>
Authored: Fri Oct 10 19:47:12 2014 +0400
Committer: Alexander Shorin <kxepal@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}) ->


Mime
View raw message