]> git.kaiwu.me - nginx.git/commitdiff
log right request method
authorIgor Sysoev <igor@sysoev.ru>
Sun, 30 Dec 2007 09:11:19 +0000 (09:11 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 30 Dec 2007 09:11:19 +0000 (09:11 +0000)
src/http/ngx_http_request.c

index e3cbcddf7eff242837c77a8524ecebd5892e2794..0816cf92022f267edf8e5ae1fa56c3acba9f35e6 100644 (file)
@@ -1309,7 +1309,8 @@ ngx_http_process_request_header(ngx_http_request_t *r)
         && r->headers_in.content_length_n == -1)
     {
         ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
-                  "client sent POST method without \"Content-Length\" header");
+                  "client sent %V method without \"Content-Length\" header",
+                  &r->method_name);
         ngx_http_finalize_request(r, NGX_HTTP_LENGTH_REQUIRED);
         return NGX_ERROR;
     }