Bug#36081: apt-get http header parsing too strict
Package: apt
Version: 0.1.9
In methods/http/http.cc, apt-get's http method reports "http: Bad header line"
if there is no space in any given header.
This is not compliant with the HTTP standard, as I understand it. Spaces are
conventionally used, but are not required. I am looking at
http://www.w3c.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-rev-06.txt,
section 4.2.
The HTTP cache that I am behind is appending "Connection:close" (with no
space!) to the headers. I will report this bug to the vendor as well.
For now, I just hacked it to ignore errors in the headers for my own machine.
I don't have time to write a more well-thought out patch at this time, but I
hope someone can deal with this.
--Josh
--
Josh Wilmes (josh@hitchhiker.org) | http://www.hitchhiker.org
Reply to: