couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Chesneau (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-40) Transfer-Encoding: Chunked on HTTP 1.0 request
Date Thu, 17 Apr 2008 10:19:21 GMT

    [ 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.


Mime
View raw message