]> git.kaiwu.me - nginx.git/commit
SPDY: do not reject headers with empty value (ticket #396).
authorValentin Bartenev <vbart@nginx.com>
Thu, 15 Aug 2013 15:16:09 +0000 (19:16 +0400)
committerValentin Bartenev <vbart@nginx.com>
Thu, 15 Aug 2013 15:16:09 +0000 (19:16 +0400)
commitdb8a0c8bf1d07936691107a4ea1626112541250c
treea6e14b600e72500cd5389345a8915e237dc4b44a
parent3be925b6e3c79a2030beaceb7feb0253e0ef17b5
SPDY: do not reject headers with empty value (ticket #396).

A quote from SPDY draft 2 specification: "The length of each name and
value must be greater than zero.  A receiver of a zero-length name or
value must send a RST_STREAM with code PROTOCOL error."

But it appears that Chrome browser allows sending requests over SPDY/2
connection using JavaScript that contain headers with empty values.

For better compatibility across SPDY clients and to be compliant with
HTTP, such headers are no longer rejected.

Also, it is worth noting that in SPDY draft 3 the statement has been
changed so that it permits empty values for headers.
src/http/ngx_http_spdy.c