comparison src/http/ngx_http_request.c @ 1812:8f8b66a48494

log right request method
author Igor Sysoev <igor@sysoev.ru>
date Sun, 30 Dec 2007 09:11:19 +0000
parents 0d9c6fe7502b
children 81831a2bc67a
comparison
equal deleted inserted replaced
1811:0d9c6fe7502b 1812:8f8b66a48494
1307 1307
1308 if (r->method & (NGX_HTTP_POST|NGX_HTTP_PUT) 1308 if (r->method & (NGX_HTTP_POST|NGX_HTTP_PUT)
1309 && r->headers_in.content_length_n == -1) 1309 && r->headers_in.content_length_n == -1)
1310 { 1310 {
1311 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, 1311 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
1312 "client sent POST method without \"Content-Length\" header"); 1312 "client sent %V method without \"Content-Length\" header",
1313 &r->method_name);
1313 ngx_http_finalize_request(r, NGX_HTTP_LENGTH_REQUIRED); 1314 ngx_http_finalize_request(r, NGX_HTTP_LENGTH_REQUIRED);
1314 return NGX_ERROR; 1315 return NGX_ERROR;
1315 } 1316 }
1316 1317
1317 if (r->method & NGX_HTTP_TRACE) { 1318 if (r->method & NGX_HTTP_TRACE) {