commit | f108b28038d519db51f0453217af6f25381e1265 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Wed Sep 04 21:17:01 2013 +0400 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Wed Sep 04 21:17:01 2013 +0400 |
tree | cf973ffed325dc0739d850e64b88a6f99e750957 | |
parent | 4b189002af160515fdd523b3d1802c050268c45f [diff] |
Fixed incorrect response line on "return 203". Reported by Weibin Yao, http://mailman.nginx.org/pipermail/nginx-devel/2013-April/003607.html.
diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c index 707a813..875177b 100644 --- a/src/http/ngx_http_header_filter_module.c +++ b/src/http/ngx_http_header_filter_module.c
@@ -270,6 +270,12 @@ 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);