Mercurial > hg > nginx
comparison src/http/ngx_http_request_body.c @ 681:7e24168b0853 release-0.4.0
nginx-0.4.0-RELEASE import
*) Change in internal API: the HTTP modules initialization was moved
from the init module phase to the HTTP postconfiguration phase.
*) Change: now the request body is not read beforehand for the
ngx_http_perl_module: it's required to start the reading using the
$r->has_request_body method.
*) Feature: the ngx_http_perl_module supports the DECLINED return code.
*) Feature: the ngx_http_dav_module supports the incoming "Date" header
line for the PUT method.
*) Feature: the "ssi" directive is available inside the "if" block.
*) Bugfix: a segmentation fault occurred if there was an "index"
directive with variables and the first index name was without
variables; the bug had appeared in 0.1.29.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 30 Aug 2006 10:39:17 +0000 |
parents | b80f94fa2197 |
children | 86862ad988da |
comparison
equal
deleted
inserted
replaced
680:63a949f7ed4f | 681:7e24168b0853 |
---|---|
415 | 415 |
416 if (rev->timer_set) { | 416 if (rev->timer_set) { |
417 ngx_del_timer(rev); | 417 ngx_del_timer(rev); |
418 } | 418 } |
419 | 419 |
420 r->discard_body = 1; | |
421 | |
420 if (r->headers_in.content_length_n <= 0) { | 422 if (r->headers_in.content_length_n <= 0) { |
421 return NGX_OK; | 423 return NGX_OK; |
422 } | 424 } |
423 | |
424 r->discard_body = 1; | |
425 | 425 |
426 size = r->header_in->last - r->header_in->pos; | 426 size = r->header_in->last - r->header_in->pos; |
427 | 427 |
428 if (size) { | 428 if (size) { |
429 if (r->headers_in.content_length_n > size) { | 429 if (r->headers_in.content_length_n > size) { |