incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Merrells <>
Subject standalone attachments and content-encoding header
Date Wed, 17 Mar 2010 19:39:15 GMT


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.

[12:29][john@johnmerrellsmacbookpro:~/jj/reflector(master)]$ curl --head http://host:port/pages/
HTTP/1.1 200 OK
Server: CouchDB/0.10.1 (Erlang OTP/R13B)
ETag: "2-1d1c512ddcf00a7d8b1a7f8052f06314"
Date: Wed, 17 Mar 2010 19:37:27 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 19909
Cache-Control: must-revalidate



John Merrells

View raw message