bzr get fails without Content-type on inventory.knit file
Bug #62473 reported by
Daniel Dehennin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
John A Meinel |
Bug Description
Cherokee do not send Content-Type when it doesn't know the file type.
bzr produce an error:
bzr: ERROR: Invalid http Content-type "" for http://
Maybe bzr should assume application/
Regards.
Related branches
Changed in bzr: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On Tue, 2006-09-26 at 15:56 +0000, Daniel Dehennin wrote: www.asgardr. info:8080/ ~nebu/archives/ dvc.dev/ .bzr/repository /inventory. knit: Missing Content-Type octet-stream if there is no Content-
> Public bug reported:
>
> Cherokee do not send Content-Type when it doesn't know the file type.
>
> bzr produce an error:
> bzr: ERROR: Invalid http Content-type "" for http://
>
> Maybe bzr should assume application/
> Type ?
Is it sending:
HTTP/1.1 200 OK\r\n
Content-type: \r\n
Content-length: 12\r\n
...
or
HTTP/1.1 200 OK\r\n
Content-length: 12\r\n
...
rfc2616 says:
Content-Type = "Content-Type" ":" media-type
media-type = type "/" subtype *( ";" parameter )
type = token
subtype = token
That is, an empty content-type header is illegal. An ommitted one is ok (but undesirable for a variety of reasons).
-Rob
-- www.robertcolli ns.net/ keys.txt>.
GPG key available at: <http://