couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject [22/50] [abbrv] couchdb commit: updated refs/heads/2041-update-ibrowse to 948e7d9
Date Fri, 07 Mar 2014 00:18:05 GMT
fix handle_req

handle-req/2 was useless. Instead we wanted handle_req/1 to tell to
others which method is allowed.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/aed283fd
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/aed283fd
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/aed283fd

Branch: refs/heads/2041-update-ibrowse
Commit: aed283fd79f7d3e90b1c7339aa2bba30da296864
Parents: e389a8b
Author: Benoit Chesneau <bchesneau@gmail.com>
Authored: Sun Feb 16 13:26:06 2014 +0100
Committer: Benoit Chesneau <bchesneau@gmail.com>
Committed: Sun Feb 16 13:37:24 2014 +0100

----------------------------------------------------------------------
 src/couch_dbupdates/src/couch_dbupdates_httpd.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/aed283fd/src/couch_dbupdates/src/couch_dbupdates_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_dbupdates/src/couch_dbupdates_httpd.erl b/src/couch_dbupdates/src/couch_dbupdates_httpd.erl
index 96058d3..afd99a5 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}) ->


Mime
View raw message