-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add back filename parameter to content-disposition header
* Add the `filename` parameter to the Content-Disposition header returned by WB for file downloads. Since `filename` cannot correctly encode multibyte characters, those characters will be transformed into their nearest ascii equivalent or removed if no such equivalent exists. When WB standardized the format of the header in c804e04 to support multibyte filenames, it was decided to only provide `filename*`, the extended-value form of the parameter. While this works for modern browsers, it inadvertantly broke scripts[1] that expected the old form of the parameter. Thanks, @jcohenadad, for the report! [1] spinalcordtoolbox/spinalcordtoolbox#2056
- Loading branch information
Showing
5 changed files
with
65 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters