incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: standalone attachments and content-encoding header
Date Tue, 23 Mar 2010 09:02:51 GMT
On Wed, Mar 17, 2010 at 11:53 PM, Filipe David Manana
<fdmanana@gmail.com> wrote:
> If the attachment request doesn't have "Accept-Encoding: deflate", then
> couch needs to know the attachment is deflate compressed and uncompress the
> attachment before sending it to the client. A missing Accept-Encoding header
> is the same as "Accept-Encoding: identity, *;q=0".
> Therefore you need to know the attachment was uploaded with deflate encoding
> and how to uncompress it.

I don't see why t should know. If couchdb don't know how to handle the
attachment it should just send it with the content-type stored.

- benoit

Mime
View raw message