mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
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:
parent
28b001f897
commit
aa12f3c7f3
@ -1647,6 +1647,8 @@ ngx_http_proxy_parse_chunked(ngx_http_request_t *r, ngx_buf_t *buf)
|
|||||||
state = sw_trailer;
|
state = sw_trailer;
|
||||||
break;
|
break;
|
||||||
case ';':
|
case ';':
|
||||||
|
case ' ':
|
||||||
|
case '\t':
|
||||||
state = sw_last_chunk_extension;
|
state = sw_last_chunk_extension;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -1664,6 +1666,8 @@ ngx_http_proxy_parse_chunked(ngx_http_request_t *r, ngx_buf_t *buf)
|
|||||||
state = sw_chunk_data;
|
state = sw_chunk_data;
|
||||||
break;
|
break;
|
||||||
case ';':
|
case ';':
|
||||||
|
case ' ':
|
||||||
|
case '\t':
|
||||||
state = sw_chunk_extension;
|
state = sw_chunk_extension;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user