From 6bd4afc34d12f96b3872e6b0bc028ad7f01b579c Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Wed, 23 Dec 2009 00:55:35 +0000 Subject: 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 --- src/couchdb/couch_httpd_external.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/couchdb') 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)}, -- cgit v1.2.3