summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorJason David Davies <jasondavies@apache.org>2009-09-23 23:17:20 +0000
committerJason David Davies <jasondavies@apache.org>2009-09-23 23:17:20 +0000
commitd9e9b141f7fab5f18c6e37e0c545f74775514e40 (patch)
tree43396dd569d28bef2def5d1410de5cce1c43824a /src/couchdb
parent219cd4db7e62878b3bd2cb537c73cb8acf04bf47 (diff)
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
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_httpd_external.erl1
1 files changed, 1 insertions, 0 deletions
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)}]}.