mirror of
https://github.com/nginx/nginx.git
synced 2025-06-09 02:42:48 +08:00
SPDY: fix support for headers with multiple values.
Split SPDY header with multiple, NULL-separated values: cookie: foo\0bar into two separate HTTP headers with the same name: cookie: foo cookie: bar Even though the logic for this behavior already existed in the source code, it doesn't look that it ever worked and SPDY streams with such headers were simply rejected. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
This commit is contained in:
parent
ba95686741
commit
12ca9c9c8f
@ -2584,6 +2584,8 @@ ngx_http_spdy_parse_header(ngx_http_request_t *r)
|
|||||||
r->header_end = p;
|
r->header_end = p;
|
||||||
r->header_in->pos = p + 1;
|
r->header_in->pos = p + 1;
|
||||||
|
|
||||||
|
r->state = sw_value;
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user