mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 23:49:00 +08:00
remove subrequest test in range header, chunked, and header filters: they
are run after postpone filter which sends data only in main request context
This commit is contained in:
parent
6c71b88924
commit
c0ae4716ec
@ -53,7 +53,6 @@ ngx_http_chunked_header_filter(ngx_http_request_t *r)
|
||||
if (r->headers_out.status == NGX_HTTP_NOT_MODIFIED
|
||||
|| r->headers_out.status == NGX_HTTP_NO_CONTENT
|
||||
|| r->headers_out.status == NGX_HTTP_CREATED
|
||||
|| r != r->main
|
||||
|| (r->method & NGX_HTTP_HEAD))
|
||||
{
|
||||
return ngx_http_next_header_filter(r);
|
||||
|
@ -151,7 +151,6 @@ ngx_http_range_header_filter(ngx_http_request_t *r)
|
||||
|
||||
if (r->http_version < NGX_HTTP_VERSION_10
|
||||
|| r->headers_out.status != NGX_HTTP_OK
|
||||
|| r != r->main
|
||||
|| r->headers_out.content_length_n == -1
|
||||
|| !r->allow_ranges)
|
||||
{
|
||||
|
@ -176,10 +176,6 @@ ngx_http_header_filter(ngx_http_request_t *r)
|
||||
|
||||
r->header_sent = 1;
|
||||
|
||||
if (r != r->main) {
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
if (r->http_version < NGX_HTTP_VERSION_10) {
|
||||
return NGX_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user