Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed incorrect response line on "return 203".

Maxim Dounin
September 04, 2013 01:38PM
details: http://hg.nginx.org/nginx/rev/941c5e3561ed
branches:
changeset: 5364:941c5e3561ed
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed Sep 04 21:17:01 2013 +0400
description:
Fixed incorrect response line on "return 203".

Reported by Weibin Yao,
http://mailman.nginx.org/pipermail/nginx-devel/2013-April/003607.html.

diffstat:

src/http/ngx_http_header_filter_module.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c
--- a/src/http/ngx_http_header_filter_module.c
+++ b/src/http/ngx_http_header_filter_module.c
@@ -270,6 +270,12 @@ ngx_http_header_filter(ngx_http_request_
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);

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Fixed incorrect response line on "return 203".

Maxim Dounin 565 September 04, 2013 01:38PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 258
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready