codelibs / fess

Fess is very powerful and easily deployable Enterprise Search Server.
https://fess.codelibs.org
Apache License 2.0
1k stars 165 forks source link

Use 'filename*' Parameter Only for Non-ASCII File Names in Content-Disposition #2786

Closed marevol closed 11 months ago

marevol commented 11 months ago

We are proposing a change in the way we handle the 'Content-Disposition' header in file responses. Currently, the header includes both 'filename' and 'filename' parameters for all file names. This change will make it so that the 'filename' parameter is only used when the file name contains non-ASCII characters. This approach aligns better with the RFC 6266 standard and improves handling of file names with special characters.