Welcome! Log In Create A New Profile

Advanced

[PATCH 2 of 3] Proxy: whitespaces after chunk size allowed

Maxim Dounin
September 25, 2011 06:48AM
# HG changeset patch
# User Maxim Dounin <mdounin@mdounin.ru>
# Date 1316882053 -14400
# Node ID 4a179d089c41bb2e8dbc606e3db8064899907193
# Parent f1cbffaa09dcc5e8d9f3fc888abcac8e6e7c38b3
Proxy: whitespaces after chunk size allowed.

Whitespaces after chunk size seems to be be allowed by the "implied *LWS" rule
and emitted by some servers.

diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -1647,6 +1647,8 @@ ngx_http_proxy_parse_chunked(ngx_http_re
state = sw_trailer;
break;
case ';':
+ case ' ':
+ case '\t':
state = sw_last_chunk_extension;
break;
default:
@@ -1664,6 +1666,8 @@ ngx_http_proxy_parse_chunked(ngx_http_re
state = sw_chunk_data;
break;
case ';':
+ case ' ':
+ case '\t':
state = sw_chunk_extension;
break;
default:

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

[PATCH 0 of 3] keepalive/chunked patches

Maxim Dounin 1583 September 25, 2011 06:48AM

[PATCH 1 of 3] Upstream: clearing of u->peer.connection on close

Maxim Dounin 622 September 25, 2011 06:48AM

Re: [PATCH 1 of 3] Upstream: clearing of u->peer.connection on close

xiaohanhoho 575 October 09, 2011 03:24AM

Re: [PATCH 1 of 3] Upstream: clearing of u->peer.connection on close

Maxim Dounin 700 October 09, 2011 03:38PM

[PATCH 2 of 3] Proxy: whitespaces after chunk size allowed

Maxim Dounin 584 September 25, 2011 06:48AM

[PATCH 3 of 3] Proxy: logging levels tuned, double logging fixed

Maxim Dounin 556 September 25, 2011 06:48AM



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

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready