From d9e9b141f7fab5f18c6e37e0c545f74775514e40 Mon Sep 17 00:00:00 2001 From: Jason David Davies Date: Wed, 23 Sep 2009 23:17:20 +0000 Subject: Include peer in req object for externals: _show, _list, _update etc. Closes COUCHDB-470. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818316 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd_external.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_httpd_external.erl b/src/couchdb/couch_httpd_external.erl index 0a222311..ad065011 100644 --- a/src/couchdb/couch_httpd_external.erl +++ b/src/couchdb/couch_httpd_external.erl @@ -79,6 +79,7 @@ json_req_obj(#httpd{mochi_req=Req, {<<"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)}]}. -- cgit v1.2.3