comparison src/http/ngx_http_request.c @ 294:27d9d1f26b38 NGINX_0_5_17

nginx 0.5.17 *) Change: now nginx always returns the 405 status for the TRACE method. *) Feature: now nginx supports the "include" directive inside the "types" block. *) Bugfix: the $document_root variable usage in the "root" and "alias" directives is disabled: this caused recursive stack overflow. *) Bugfix: in the HTTPS protocol in the "proxy_pass" directive. *) Bugfix: in some cases non-cachable variables (such as $uri variable) returned old cached value.
author Igor Sysoev <http://sysoev.ru>
date Mon, 02 Apr 2007 00:00:00 +0400
parents f745bf973510
children 30862655219e
comparison
equal deleted inserted replaced
293:30378812e3af 294:27d9d1f26b38
1265 "client sent POST method without \"Content-Length\" header"); 1265 "client sent POST method without \"Content-Length\" header");
1266 ngx_http_finalize_request(r, NGX_HTTP_LENGTH_REQUIRED); 1266 ngx_http_finalize_request(r, NGX_HTTP_LENGTH_REQUIRED);
1267 return NGX_ERROR; 1267 return NGX_ERROR;
1268 } 1268 }
1269 1269
1270 if (r->method & (NGX_HTTP_TRACE)) {
1271 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
1272 "client sent TRACE method");
1273 ngx_http_finalize_request(r, NGX_HTTP_NOT_ALLOWED);
1274 return NGX_ERROR;
1275 }
1276
1270 if (r->headers_in.transfer_encoding 1277 if (r->headers_in.transfer_encoding
1271 && ngx_strstr(r->headers_in.transfer_encoding->value.data, "chunked")) 1278 && ngx_strstr(r->headers_in.transfer_encoding->value.data, "chunked"))
1272 { 1279 {
1273 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, 1280 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
1274 "client sent \"Transfer-Encoding: chunked\" header"); 1281 "client sent \"Transfer-Encoding: chunked\" header");