Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 80079 invoked from network); 23 Sep 2009 23:17:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Sep 2009 23:17:43 -0000 Received: (qmail 9625 invoked by uid 500); 23 Sep 2009 23:17:43 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 9530 invoked by uid 500); 23 Sep 2009 23:17:43 -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 9521 invoked by uid 99); 23 Sep 2009 23:17:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2009 23:17:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2009 23:17:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4383523888FC; Wed, 23 Sep 2009 23:17:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r818316 - /couchdb/trunk/src/couchdb/couch_httpd_external.erl Date: Wed, 23 Sep 2009 23:17:21 -0000 To: commits@couchdb.apache.org From: jasondavies@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090923231721.4383523888FC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jasondavies Date: Wed Sep 23 23:17:20 2009 New Revision: 818316 URL: http://svn.apache.org/viewvc?rev=818316&view=rev Log: Include peer in req object for externals: _show, _list, _update etc. Closes COUCHDB-470. Modified: couchdb/trunk/src/couchdb/couch_httpd_external.erl Modified: couchdb/trunk/src/couchdb/couch_httpd_external.erl URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_external.erl?rev=818316&r1=818315&r2=818316&view=diff ============================================================================== --- couchdb/trunk/src/couchdb/couch_httpd_external.erl (original) +++ couchdb/trunk/src/couchdb/couch_httpd_external.erl Wed Sep 23 23:17:20 2009 @@ -79,6 +79,7 @@ {<<"query">>, to_json_terms(Req:parse_qs())}, {<<"headers">>, to_json_terms(Hlist)}, {<<"body">>, Body}, + {<<"peer">>, ?l2b(Req:get(peer))}, {<<"form">>, to_json_terms(ParsedForm)}, {<<"cookie">>, to_json_terms(Req:parse_cookie())}, {<<"userCtx">>, couch_util:json_user_ctx(Db)}]}.