]> git.saurik.com Git - apt.git/commit
http(s): allow empty values for header fields
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 12 Aug 2016 20:13:09 +0000 (22:13 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 13 Aug 2016 06:49:35 +0000 (08:49 +0200)
commit148c049150cc39f2e40894c1684dc2aefea1117e
treec4cfe24e454cd27bc68005736c21db06dd0bbaa6
parent9445fa62386c80c9822e77484d30b2109aa0f2dc
http(s): allow empty values for header fields

It seems completely pointless from a server-POV to sent empty header
fields, so most of them don't do it (simply proven by this limitation
existing since day one) – but it is technically allowed by the RFC as
the surounding whitespaces are optional and Github seems to like sending
"X-Geo-Block-List:\r\n" since recently (bug reports in other http
clients indicate July) at least sometimes as the reporter claims to have
seen it on https only even through it can happen with both.

Closes: 834048
methods/server.cc
test/integration/test-bug-778375-server-has-no-reason-phrase
test/interactive-helper/aptwebserver.cc