Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA3A11000A for ; Sun, 16 Feb 2014 12:27:34 +0000 (UTC) Received: (qmail 31835 invoked by uid 500); 16 Feb 2014 12:27:32 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 31703 invoked by uid 500); 16 Feb 2014 12:27:29 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 31696 invoked by uid 99); 16 Feb 2014 12:27:27 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 12:27:27 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 766508274F5; Sun, 16 Feb 2014 12:27:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: benoitc@apache.org To: commits@couchdb.apache.org Message-Id: <1d48c442870f44078a77aec982e2a687@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: couch-dbupdates commit: updated refs/heads/1994-merge-rcouch to fcc2017 Date: Sun, 16 Feb 2014 12:27:26 +0000 (UTC) Repository: couchdb-couch-dbupdates Updated Branches: refs/heads/1994-merge-rcouch 4c212661a -> fcc201722 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-couch-dbupdates/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-dbupdates/commit/fcc20172 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-dbupdates/tree/fcc20172 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-dbupdates/diff/fcc20172 Branch: refs/heads/1994-merge-rcouch Commit: fcc201722a4494096742ff399f5873895b3c0b6b Parents: 4c21266 Author: benoitc Authored: Sun Feb 16 13:26:06 2014 +0100 Committer: benoitc Committed: Sun Feb 16 13:26:06 2014 +0100 ---------------------------------------------------------------------- src/couch_dbupdates_httpd.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch-dbupdates/blob/fcc20172/src/couch_dbupdates_httpd.erl ---------------------------------------------------------------------- diff --git a/src/couch_dbupdates_httpd.erl b/src/couch_dbupdates_httpd.erl index ec0c4d6..ae001ae 100644 --- a/src/couch_dbupdates_httpd.erl +++ b/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}) ->