Re: [PATCH] web: http: Accept blank Content-Type headers.

2015-07-27 Thread Mark H Weaver
David Thompson da...@gnu.org writes: I encountered a bug in the HTTP header parsing bug when trying to download a file via Guix. The response had a Content-Type header, but with no value, like so: Content-Type: From reading the W3C spec[0], an unknown Content-Type header can be

Re: [PATCH] web: http: Accept blank Content-Type headers.

2015-07-27 Thread Thompson, David
Apologies for the previous email. I seriously botched some keystrokes. On Mon, Jul 27, 2015 at 5:05 PM, Mark H Weaver m...@netris.org wrote: David Thompson da...@gnu.org writes: I encountered a bug in the HTTP header parsing bug when trying to download a file via Guix. The response had a

Re: [PATCH] web: http: Accept blank Content-Type headers.

2015-07-27 Thread Thompson, David
On Mon, Jul 27, 2015 at 5:05 PM, Mark H Weaver m...@netris.org wrote: David Thompson da...@gnu.org writes: I encountered a bug in the HTTP header parsing bug when trying to download a file via Guix. The response had a Content-Type header, but with no value, like so: Content-Type:

[PATCH] web: http: Accept blank Content-Type headers.

2015-07-23 Thread David Thompson
: [PATCH] web: http: Accept blank Content-Type headers. * module/web/http.scm (parse-media-type): Return 'application/octet-stream' when given the empty string. * test-suite/tests/web-http.test (entity headers): Add test. --- module/web/http.scm| 10 +++--- test-suite/tests/web