Welcome! Log In Create A New Profile

Advanced

Proxy to backend responding with transfer-encoding chunked results in wrong content type

November 07, 2010 03:42PM
I'm currently proxying riak (http://riak.basho.com) using nginx with great success. Now, however,
I also need to proxy to luwak (for large files support in riak). The luwak interface responds with
transfer-encoding: chunked and for some reason, when nginx passes this on, the content-type
automatically becomes application/octet-stream. I'm running nginx 0.8.52. Tried with turning
proxy_buffering off and using chunked_transfer_encoding on; among other things but I always
get the same result, i.e application/octet-stream. Not so when making a GET request directly to
luwak OR making a HEAD request to either luwak or nginx.

Should it be possible to do what I want using nginx and am I then doing something wrong or is there
something missing in nginx to make this work?


Thanks for your time!
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy to backend responding with transfer-encoding chunked results in wrong content type

benjinx November 07, 2010 03:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready