summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-12-23 00:55:35 +0000
committerJan Lehnardt <jan@apache.org>2009-12-23 00:55:35 +0000
commit6bd4afc34d12f96b3872e6b0bc028ad7f01b579c (patch)
treebb7fef7b034373dbe570755b2f5921861e7fdd83 /src
parentfe98014a2345b504ea4bd876fd102c6738ed6bb5 (diff)
Follow RFC 2616 closer and use "verb" instead of "method"
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893364 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_external.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd_external.erl b/src/couchdb/couch_httpd_external.erl
index 13aff847..efbe87b8 100644
--- a/src/couchdb/couch_httpd_external.erl
+++ b/src/couchdb/couch_httpd_external.erl
@@ -55,7 +55,7 @@ process_external_req(HttpReq, Db, Name) ->
end.
json_req_obj(Req, Db) -> json_req_obj(Req, Db, null).
json_req_obj(#httpd{mochi_req=Req,
- method=Verb,
+ method=Method,
path_parts=Path,
req_body=ReqBody
}, Db, DocId) ->
@@ -75,7 +75,7 @@ json_req_obj(#httpd{mochi_req=Req,
% add headers...
{[{<<"info">>, {Info}},
{<<"id">>, DocId},
- {<<"verb">>, Verb},
+ {<<"method">>, Method},
{<<"path">>, Path},
{<<"query">>, to_json_terms(Req:parse_qs())},
{<<"headers">>, to_json_terms(Hlist)},