Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.c @ 1151:b1ebd03de948
disable TRACE method
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 30 Mar 2007 18:59:26 +0000 |
parents | 03f1133f24e8 |
children | 6e2216ad2c87 |
comparison
equal
deleted
inserted
replaced
1150:1030996f617c | 1151:b1ebd03de948 |
---|---|
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"); |