Currently the application that is passing the X-Accel-Redirect uri back
to nginx must set the Content-type header otherwise it will
automatically be set to the default_type setting. Is there a way to get
nginx to automatically detect the mime settings and transmit it? I’ve
tried: fastcgi_ignore_headers Content-Type, but that gave me the error
(taken from nginx, x-accel-redirect and mime types - Server Fault):
[warn] 3988#1288: invalid value “Content-Type”
Note: I’m using the latest windows build to test on.
On Thu, Nov 04, 2010 at 04:37:50PM -0400, soulodd wrote:
Currently the application that is passing the X-Accel-Redirect uri back
to nginx must set the Content-type header otherwise it will
automatically be set to the default_type setting.
This is not true.
If not explicitly set by script together with X-Accel-Redirect -
Content-Type will be set by nginx according to extension of
redirect destination (and types/default_type defined, see [1]).