mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
log right request method
This commit is contained in:
parent
feee7265b5
commit
0d68f27748
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue