From 0d68f27748754f4851829c02e1624300d36f5966 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 30 Dec 2007 09:11:19 +0000 Subject: log right request method --- src/http/ngx_http_request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index e3cbcddf7..0816cf920 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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; } -- cgit