]> 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)
committerJulian Andres Klode <jak@debian.org>
Wed, 5 Oct 2016 19:53:38 +0000 (21:53 +0200)
commitc0475a2283d662a375295c1477d7193cef823832
treedbc40bc1b5a65062b25a5de6a860cbfc3a8d2143
parentbc8c6ca0c1815b1c3141c177939e1efbdc9862e9
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
(cherry picked from commit 148c049150cc39f2e40894c1684dc2aefea1117e)
methods/server.cc
test/integration/test-bug-778375-server-has-no-reason-phrase
test/interactive-helper/aptwebserver.cc