-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly parse the content disposition filename (#46)
If the content disposition header filename uses quotes, `pyodide-build` includes the quotes in the literal filename, which e.g. confuses `shutil.unpack_archive` in determining the file type. This PR includes a simple fix to check and strip the quotes using the `email.message.Message` parser to properly extract the filename (see https://stackoverflow.com/a/78073510).
- Loading branch information
Showing
2 changed files
with
37 additions
and
9 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