-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parse content-disposition properly and fix firefox download
This commit Fixes #4754 and #4248. It uses express' own attachement method and parses the content-disposition reliably and decodes the filename if possible. This also fixes the downloading on firefox by appending the anchor link to the body before triggering the click event and removes it after. Signed-off-by: Uni Sayo <unibtc@gmail.com> use encodeUriComponent and decodeUriComponent Signed-off-by: Uni Sayo <unibtc@gmail.com>
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 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