mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
Fixed incorrect response line on "return 203".
Reported by Weibin Yao, http://mailman.nginx.org/pipermail/nginx-devel/2013-April/003607.html.
This commit is contained in:
parent
4b189002af
commit
f108b28038
1 changed files with 6 additions and 0 deletions
|
|
@ -270,6 +270,12 @@ ngx_http_header_filter(ngx_http_request_t *r)
|
|||
len += NGX_INT_T_LEN;
|
||||
status_line = NULL;
|
||||
}
|
||||
|
||||
if (status_line && status_line->len == 0) {
|
||||
status = r->headers_out.status;
|
||||
len += NGX_INT_T_LEN;
|
||||
status_line = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue