Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 83344 invoked from network); 23 Apr 2008 18:27:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2008 18:27:57 -0000 Received: (qmail 92163 invoked by uid 500); 23 Apr 2008 18:27:58 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 92146 invoked by uid 500); 23 Apr 2008 18:27:58 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 92135 invoked by uid 99); 23 Apr 2008 18:27:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 11:27:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.198.247 as permitted sender) Received: from [209.85.198.247] (HELO rv-out-0506.google.com) (209.85.198.247) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 18:27:15 +0000 Received: by rv-out-0506.google.com with SMTP id k29so1526765rvb.0 for ; Wed, 23 Apr 2008 11:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=DVtb/Ftj3AY/ecCdATNMf38waq8BgOGsjYUP/lW3CQs=; b=qeAwHyelyO7QfI9SwZ2tBMViEy4wHguMtbEdxpDYTxTH5xt7y4cUeWzBLYQHnXHEK4+Ae4JpcevHF1Vu2BzQsVrlMppGY8azW4l2MVX8AwXVlljywDGPPNtF68IBV/HEGzj2Ted8pYa44JPow8MBuKUVj1+XvfIB7JpCKH4bfTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Bl5Hxhk8xYZpUo2IRRDwwRkkxaJSimiJc2RcaWbxTTghyNUZ0fSQijNPhClyDVgW6QRWXVlfQWT/OaUR2lQHW56RL2Po9wuR1B3/ySm+KhZHa7JSeMC2GneE/ZcQ8c1mmbvfjXrEfxgCLlHwGCVaesyLxyt596q1JEZ64NfT2JI= Received: by 10.140.180.42 with SMTP id c42mr741821rvf.145.1208975248663; Wed, 23 Apr 2008 11:27:28 -0700 (PDT) Received: by 10.140.185.6 with HTTP; Wed, 23 Apr 2008 11:27:28 -0700 (PDT) Message-ID: Date: Wed, 23 Apr 2008 20:27:28 +0200 From: "Benoit Chesneau" To: couchdb-user@incubator.apache.org Subject: Re: Erroneous output from the trunk? In-Reply-To: <6F3CD0A6-77CF-4451-9E49-87A51F432EB0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2A67D687-745D-4FDB-9ECE-2491EB48A817@gmail.com> <241FC5B1-8820-4492-B73D-5500465C90FD@gmail.com> <2CB74745-B717-4931-8F35-843D13F8805E@gmail.com> <6F3CD0A6-77CF-4451-9E49-87A51F432EB0@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Apr 23, 2008 at 8:22 PM, Guby wrote: > I access it through nginx, but this worked perfectly until I updated > couchdb. The nginx config looks like this: > > upstream db { > server 127.0.0.1:5984; > } > > server { > listen 80; > server_name my_domain.com; > location / { > proxy_pass http://db; > auth_basic "Restricted area"; > auth_basic_user_file /path_to_password_file/.htpasswd; > break; > } > } > > Here are the headers from Firefox: > > Response Headers > Transfer-Encoding chunked > Date Wed, 23 Apr 2008 16:00:36 GMT > Content-Type text/plain;charset=3Dutf-8 > Server nginx/0.5.26 > Content-Encoding gzip > > Request Headers > Host db.kle.io > User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X; nb-NO; > rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 > Accept > text/xml,application/xml,application/xhtml+xml,text/html;q=3D0.9,text/pla= in;q=3D0.8,image/png,*/*;q=3D0.5 > Accept-Language nb,no;q=3D0.8,nn;q=3D0.6,en-us;q=3D0.4,en;q=3D0.2 > Accept-Encoding gzip,deflate > Accept-Charset ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7 > Keep-Alive 300 > Connection keep-alive > Authorization Basic c2ViYXN0aWFuOnNlYmJhODU=3D > > > Best regards > Sebastian > ok. So this is a known problem, nginx converse with couchdb in http 1.0 like most of proxies. So you get a non parsed http chunks. I made a patch for that (though non tested with latest trunk) : You can get it here : https://issues.apache.org/jira/browse/COUCHDB-40 don't hesitate to comment this issue :) Beno=EEt --=20 - beno=EEt