summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2010-06-12 19:24:26 +0000
committerAdam Kocoloski <kocolosk@apache.org>2010-06-12 19:24:26 +0000
commitd8c25ff8ee02aa5bb6f3a8aecf479109226d42db (patch)
tree461feb9a6be4c589899a77957ab0f763ac650094 /src/couchdb
parentf78b21bb145e2ff1d870b779a3aec6596aafc9d8 (diff)
log HEAD requests as HEAD, not GET. COUCHDB-788
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@954045 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_httpd.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index d009b0d6..96be539e 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -478,10 +478,10 @@ verify_is_server_admin(#user_ctx{roles=Roles}) ->
false -> throw({unauthorized, <<"You are not a server admin.">>})
end.
-log_request(#httpd{mochi_req=MochiReq,peer=Peer,method=Method}, Code) ->
+log_request(#httpd{mochi_req=MochiReq,peer=Peer}, Code) ->
?LOG_INFO("~s - - ~p ~s ~B", [
Peer,
- Method,
+ couch_util:to_existing_atom(MochiReq:get(method)),
MochiReq:get(raw_path),
couch_util:to_integer(Code)
]).