-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Touch up Content-Disposition header (#3439)
* Touch up Content-Disposition header PBENCH-1169 Help clients with the output of `GET /datasets/<id>/inventory/` by "tuning" the `Content-Disposition` header automatically generated by Werkzeug's `send_file` API. I started thinking I would construct the header and looking into how to add headers to the `Response` object constructed by `send_file`. It actually does a good job of guessing the filename, but I decided to help it by providing the name we want, and I'm designating the raw tarfile as an `attachment` that we can't reasonably expect a client (especially the UI) to do anything with "inline" (the default).
- Loading branch information
Showing
2 changed files
with
37 additions
and
13 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