aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Sikora <piotr@cloudflare.com>2014-07-08 02:17:44 -0700
committerPiotr Sikora <piotr@cloudflare.com>2014-07-08 02:17:44 -0700
commit12ca9c9c8fb82d97a3aeb5b3c02b76ebfa66a04b (patch)
tree7f9a0c1224a469266c5e175d07e0c1c2d904444b
parentba956867414191d2e2468f1c4fabf47e6b3f0176 (diff)
downloadnginx-12ca9c9c8fb82d97a3aeb5b3c02b76ebfa66a04b.tar.gz
nginx-12ca9c9c8fb82d97a3aeb5b3c02b76ebfa66a04b.zip
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>
-rw-r--r--src/http/ngx_http_spdy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c
index 810d8d8f4..478036979 100644
--- a/src/http/ngx_http_spdy.c
+++ b/src/http/ngx_http_spdy.c
@@ -2584,6 +2584,8 @@ ngx_http_spdy_parse_header(ngx_http_request_t *r)
r->header_end = p;
r->header_in->pos = p + 1;
+ r->state = sw_value;
+
return NGX_OK;
}