couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r954046 - /couchdb/branches/0.11.x/src/couchdb/couch_httpd.erl
Date Sat, 12 Jun 2010 19:26:21 GMT
Author: kocolosk
Date: Sat Jun 12 19:26:21 2010
New Revision: 954046

URL: http://svn.apache.org/viewvc?rev=954046&view=rev
Log:
log HEAD requests as HEAD, not GET. COUCHDB-788

Modified:
    couchdb/branches/0.11.x/src/couchdb/couch_httpd.erl

Modified: couchdb/branches/0.11.x/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/src/couchdb/couch_httpd.erl?rev=954046&r1=954045&r2=954046&view=diff
==============================================================================
--- couchdb/branches/0.11.x/src/couchdb/couch_httpd.erl (original)
+++ couchdb/branches/0.11.x/src/couchdb/couch_httpd.erl Sat Jun 12 19:26:21 2010
@@ -451,10 +451,10 @@ verify_is_server_admin(#user_ctx{roles=R
     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)
     ]).



Mime
View raw message