comparison src/http/ngx_http_spdy.c @ 5762:b522d5b137fd

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>
author Piotr Sikora <piotr@cloudflare.com>
date Tue, 08 Jul 2014 02:17:44 -0700
parents 19a14a484707
children 3f5f0ab59b35
comparison
equal deleted inserted replaced
5761:1d693deab8ae 5762:b522d5b137fd
2582 } 2582 }
2583 2583
2584 r->header_end = p; 2584 r->header_end = p;
2585 r->header_in->pos = p + 1; 2585 r->header_in->pos = p + 1;
2586 2586
2587 r->state = sw_value;
2588
2587 return NGX_OK; 2589 return NGX_OK;
2588 } 2590 }
2589 2591
2590 if (ch == CR || ch == LF) { 2592 if (ch == CR || ch == LF) {
2591 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, 2593 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,