General Community > Site Comments, Issues and Concerns

bogus Content-Disposition header field sent to Firefox

<< < (3/9) > >>

Thantos:
Thanks, missed that one.  Will fix the patch. (stupid quotes are so hard to see first thing in the morning).

reschke:

--- Quote from: Thantos on September 08, 2011, 11:05:35 AM ---Thanks, missed that one.  Will fix the patch. (stupid quotes are so hard to see first thing in the morning).

--- End quote ---

:-) That's why the online validator is so useful.

Thantos:
Yeah, too bad my test boxes aren't public facing and I'd be lynched if I just made the changes here without testing/validating it first :D

Thantos:

--- Quote from: Mongoose on September 09, 2011, 10:29:38 AM ---The same for Opera browser

--- End quote ---
What's the problem for the opera browser?  It gives a correct format:

--- Quote ---    HTTP/1.1 200 OK
    Server: nginx
    Date: Fri, 09 Sep 2011 14:33:36 GMT
    Content-Type: application/octetstream
    Connection: keep-alive
    Set-Cookie:
    Expires: Sat, 08 Sep 2012 14:33:36 GMT
    Cache-Control: max-age=31536000
    Pragma:
    Content-Encoding: none
    Last-Modified: Sun, 17 Jul 2011 01:07:14 GMT
    Accept-Ranges: bytes
    ETag: "f6f5ef22730e6607b63d7c1c399ea651"
    Content-Transfer-Encoding: binary
    Content-Disposition: attachment; filename="Adk_Menu_Buttons.zip"
    Content-Length: 14123

--- End quote ---
redbot results

reschke:
The only reason to send filename* instead of filename is because the filename might contain characters outside the ASCII range.

If it never does, don't bother with filename*.

If it does, just "filename" doesn't work interoperably. Your best bet is to use the filename* format (following RFCs 5987 and 6266), and to use that for all browsers except for legacy ones (IE < 9) and broken ones (Safari). For those, you can strip out non-ASCII characters and use the simpler format.

RFC 6266, Appendix D (greenbytes.de/tech/webdav/rfc6266.html#rfc.section.D) has the details. See also trac.tools.ietf.org/wg/httpbis/trac/wiki/ContentDispositionProducerAdvice

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version