couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r954045 - /couchdb/trunk/src/couchdb/couch_httpd.erl
Date Sat, 12 Jun 2010 19:24:26 GMT
Author: kocolosk
Date: Sat Jun 12 19:24:26 2010
New Revision: 954045

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

Modified:
    couchdb/trunk/src/couchdb/couch_httpd.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd.erl?rev=954045&r1=954044&r2=954045&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd.erl Sat Jun 12 19:24:26 2010
@@ -478,10 +478,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