diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-12-30 09:11:19 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-30 09:11:19 +0000 |
commit | 0d68f27748754f4851829c02e1624300d36f5966 (patch) | |
tree | d6421099608ddb43df934fbc2c3f50c80acf89ca /src/http/ngx_http_request.c | |
parent | feee7265b5f531fb42cca762a3ac0ae765941504 (diff) | |
download | nginx-0d68f27748754f4851829c02e1624300d36f5966.tar.gz nginx-0d68f27748754f4851829c02e1624300d36f5966.zip |
log right request method
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |