[MERGE] Don't require Content-Type

Martin Pool mbp at canonical.com
Thu Oct 12 00:50:35 BST 2006


On 11 Oct 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:
> We have bug:
> https://launchpad.net/products/bzr/+bug/62473
> 
> Where Cherokee doesn't return the 'Content-Type' header if it doesn't
> know it. We currently require the Content-Type header, because that is
> where you store the 'multipart/bytes' information to distinguish a
> multipart response versus a single range response.
> 
> Anyway, we need to decide if we want to support a missing
> 'Content-Type', it doesn't seem to be required by the http spec, and the
> only thing we use it for at the moment is checking whether a range
> response is a multipart response, or a single-range response.
> 
> The attached patch just changes it so that if there is no Content-Type,
> then it cannot be multipart.

+1 from me, unless our http guru objects.

There should be a NEWS entry that this bug is fixed.

-- 
Martin




More information about the bazaar mailing list