nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

Kunal Pariani kunalvjti at gmail.com
Mon Mar 24 20:17:07 UTC 2014


hmm..thanks Lukas.
So its my backend server only which is causing this issue.

Thanks
-Kunal


On Mon, Mar 24, 2014 at 12:43 PM, Lukas Tribus <luky-37 at hotmail.com> wrote:

> FYI, nginx has not problems passing filenames with spaces along:
>
>
> # curl -I http://direct-apache/content-disposition-header.php
> HTTP/1.1 200 OK
> Date: Mon, 24 Mar 2014 19:40:22 GMT
> Server: Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4
> X-Powered-By: PHP/5.4.4
> Cache-Control: no-store, no-cache
> Connection: keep-alive
> Content-Disposition: attachment; filename="zcs error.docx"
> Content-Type:
> application/vnd.openxmlformats-officedocument.wordprocessingml.document;
> name="zcs error.docx"
>
>
> # curl -I "http://nginx-rev-proxying/content-disposition-header.php"
> HTTP/1.1 200 OK
> Server: nginx/1.4.7
> Date: Mon, 24 Mar 2014 19:41:03 GMT
> Content-Type:
> application/vnd.openxmlformats-officedocument.wordprocessingml.document;
> name="zcs error.docx"
> Connection: keep-alive
> X-Powered-By: PHP/5.4.4
> Cache-Control: no-store, no-cache
> Content-Disposition: attachment; filename="zcs error.docx"
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140324/d7e7bf0e/attachment.html>


More information about the nginx mailing list