Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 96661 invoked from network); 17 Mar 2010 20:25:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 20:25:13 -0000 Received: (qmail 3759 invoked by uid 500); 17 Mar 2010 20:25:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 3730 invoked by uid 500); 17 Mar 2010 20:25:03 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 3722 invoked by uid 99); 17 Mar 2010 20:25:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 20:25:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of b.candler@pobox.com designates 208.72.237.25 as permitted sender) Received: from [208.72.237.25] (HELO sasl.smtp.pobox.com) (208.72.237.25) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 20:24:57 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 672A0A2BD7 for ; Wed, 17 Mar 2010 16:24:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to; s=sasl; bh=0aDlcl1Pw9pGsoRvJJzhCcD9Jk4=; b=ZTvCBQy VUznECcYF3PUKnY8cxO7XYHWOwNJcmMoLEsMo03l3wJW5lWkRjbpRWqISnWh7LyE /rAWawxgHOQURi4GLmAz4ksY+4zidrCjjAnRtvkHrpvriNhc7sI3sNjWf5GG/DJY GLcOxLX1Liksml4rDP9cyDrQnv3c9AF8cYuI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=sasl; b=nOb+lKZNns9fnnO5s4LfWJTD+hJGOEafi cMGaO8sbX8JVkB0n1VGH+jTmB9ZVK02cWuBToQT3/4JKGW5qsHJP3ikegUG6hLgD oXo7Sx+izxjOwWIMM14NUK8xDj+2lsBREVuoRMWvIGPU6XHIWzR2IgnCQDaOwHAo TOXaqAVhnw= Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 43B4EA2BD5 for ; Wed, 17 Mar 2010 16:24:36 -0400 (EDT) Received: from zino (unknown [87.194.77.98]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id E75C5A2BD2 for ; Wed, 17 Mar 2010 16:24:34 -0400 (EDT) Received: from lists by zino with local (Exim 4.69) (envelope-from ) id 1Nrzn7-00045I-VL for user@couchdb.apache.org; Wed, 17 Mar 2010 20:24:34 +0000 Date: Wed, 17 Mar 2010 20:24:33 +0000 From: Brian Candler To: user@couchdb.apache.org Subject: Re: standalone attachments and content-encoding header Message-ID: <20100317202433.GB15544@uk.tiscali.com> References: <70763547-33D8-475C-90FC-296E3D46B4E3@merrells.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70763547-33D8-475C-90FC-296E3D46B4E3@merrells.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pobox-Relay-ID: 1AD9FF50-3203-11DF-8EEB-D033EE7EF46B-28021239!a-pb-sasl-quonix.pobox.com 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.