Commits

Anonymous committed 6678d05

Include peer in req object for externals: _show, _list, _update etc.

Closes COUCHDB-470.

  • Participants
  • Parent commits cf7167f

Comments (0)

Files changed (1)

File src/couchdb/couch_httpd_external.erl

         {<<"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)}]}.