Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 59059 invoked from network); 17 Apr 2008 10:22:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2008 10:22:44 -0000 Received: (qmail 61634 invoked by uid 500); 17 Apr 2008 10:22:37 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 61588 invoked by uid 500); 17 Apr 2008 10:22:37 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 61534 invoked by uid 99); 17 Apr 2008 10:22:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 03:22:37 -0700 X-ASF-Spam-Status: No, hits=-1997.6 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,URIBL_RHS_DOB,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 10:21:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DAE64234C0D7 for ; Thu, 17 Apr 2008 03:19:21 -0700 (PDT) Message-ID: <2094883330.1208427561895.JavaMail.jira@brutus> Date: Thu, 17 Apr 2008 03:19:21 -0700 (PDT) From: "Benoit Chesneau (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Commented: (COUCHDB-40) Transfer-Encoding: Chunked on HTTP 1.0 request In-Reply-To: <1745229965.1208291927984.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589929#action_12589929 ] Benoit Chesneau commented on COUCHDB-40: ---------------------------------------- I can confirm this behaviour. When you use nginx or http proxy wich are http 1.0 proxies, they get chunked http so you can't have proxy over couchdb for now. Tested with this config in nginx : server { listen 80; server_name couchdb; location / { proxy_pass http://127.0.0.1:5984; proxy_redirect off; proxy_set_header Port $proxy_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } nginx display of course unparsed http chunk. For example on index page : 2e {"couchdb":"Welcome","version":"0.7.3a648149"} 0 the same with lighttpd : $HTTP["host"] == "couchdb" { server.document-root = "/var/www/htdocs" proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 5984 )) ) } > Transfer-Encoding: Chunked on HTTP 1.0 request > ---------------------------------------------- > > Key: COUCHDB-40 > URL: https://issues.apache.org/jira/browse/COUCHDB-40 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Environment: Irrelevant > Reporter: Kore Nordmann > > The following request: > > DELETE /test HTTP/1.0 > > Host: localhost > is responded like: > > HTTP/1.0 404 Object Not Found > > Transfer-Encoding: chunked > > Server: MochiWeb/1.0 (Any of you quaids got a smint?) > > Date: Tue, 15 Apr 2008 20:39:07 GMT > > Content-Type: text/plain;charset=utf-8 > > > > 28 > > {"error":"not_found","reason":"missing"} > > 0 > while chunked transfer-encoding is only supported by HTTP 1.1. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.