X-Accel-Redirect not passing Content-Type?

Kon Wilms konfoo at gmail.com
Wed Apr 8 05:18:40 MSD 2009

On Tue, Apr 7, 2009 at 5:14 PM, Michael Shadle <mike503 at gmail.com> wrote:
> and if you want to FORCE the header
> use
> header('Content-Type: foo/bar', true);
> the true will make sure it overrides
> On Tue, Apr 7, 2009 at 4:59 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
>>> Is x-accel ignoring the Content-Type?
>> No, it doesn't.  X-Accel-Redirect preserves Content-Type header
>> from original reply (the one which returned X-Accel-Redirect).
>> Check your php script actual reply to make sure it's actually
>> returns Content-Type header (actually as header, and no other
>> headers with same name).

Thanks guys I will give it a shot :)


More information about the nginx mailing list