couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: standalone attachments and content-encoding header
Date Wed, 17 Mar 2010 20:24:33 GMT
On Wed, Mar 17, 2010 at 12:39:15PM -0700, John Merrells wrote:
> I just started working with couch and I have a question about the headers
> returned with a standalone attachment.  I'm storing compressed html files
> as an attachment, sending the headers content-type: text/html and
> content-encoding: deflate.  When the attachment is fetched the correct
> content-type is returned, but no content-encoding header is returned.  Is
> this a limitation of CouchDB?  Or, perhaps of my client (CouchRest)?  Or,
> perhaps I've just made a mistake.

Try adding --compressed option to curl command line (and GET not HEAD).
This should add "Accept-Encoding: deflate, gzip" header to the request. That
is - if the client doesn't ask for a compressed representation, I don't
think couchdb will send it.


Mime
View raw message