couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jasondav...@apache.org
Subject svn commit: r818316 - /couchdb/trunk/src/couchdb/couch_httpd_external.erl
Date Wed, 23 Sep 2009 23:17:21 GMT
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)}]}.



Mime
View raw message