nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character
Lukas Tribus
luky-37 at hotmail.com
Mon Mar 24 19:43:41 UTC 2014
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"
More information about the nginx
mailing list