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.
This commit is contained in:
Maxim Dounin 2011-09-25 20:03:27 +00:00
parent 28b001f897
commit aa12f3c7f3

View File

@ -1647,6 +1647,8 @@ ngx_http_proxy_parse_chunked(ngx_http_request_t *r, ngx_buf_t *buf)
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_request_t *r, ngx_buf_t *buf)
state = sw_chunk_data;
break;
case ';':
case ' ':
case '\t':
state = sw_chunk_extension;
break;
default: