mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 06:46:16 +08:00
remove r->zero_body unused since the previous commit
This commit is contained in:
parent
ffcae99251
commit
fb7b45d20e
@ -489,7 +489,6 @@ struct ngx_http_request_s {
|
||||
unsigned plain_http:1;
|
||||
unsigned chunked:1;
|
||||
unsigned header_only:1;
|
||||
unsigned zero_body:1;
|
||||
unsigned keepalive:1;
|
||||
unsigned lingering_close:1;
|
||||
unsigned discard_body:1;
|
||||
|
@ -598,10 +598,8 @@ ngx_http_send_special_response(ngx_http_request_t *r,
|
||||
|
||||
msie_padding = 0;
|
||||
|
||||
if (!r->zero_body) {
|
||||
if (ngx_http_error_pages[err].len) {
|
||||
r->headers_out.content_length_n = ngx_http_error_pages[err].len
|
||||
+ len;
|
||||
r->headers_out.content_length_n = ngx_http_error_pages[err].len + len;
|
||||
if (clcf->msie_padding
|
||||
&& (r->headers_in.msie || r->headers_in.chrome)
|
||||
&& r->http_version >= NGX_HTTP_VERSION_10
|
||||
@ -620,11 +618,6 @@ ngx_http_send_special_response(ngx_http_request_t *r,
|
||||
r->headers_out.content_length_n = -1;
|
||||
}
|
||||
|
||||
} else {
|
||||
r->headers_out.content_length_n = 0;
|
||||
err = 0;
|
||||
}
|
||||
|
||||
if (r->headers_out.content_length) {
|
||||
r->headers_out.content_length->hash = 0;
|
||||
r->headers_out.content_length = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user