We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The file has no file extension, but I know the mimetype.
Some ideas:
set_header_fallback
send_file
Responder
The text was updated successfully, but these errors were encountered:
@untitaker The first suggestion sounds worth doing regardless, would you like to PR that change?
I've considered implementing Responder for File/Path before, but I can't remember what was iffy about that, it might be worth investigating again :)
File/Path
Sorry, something went wrong.
fix(send_file): don't overwrite the ContentType header if it exists
8eb8c5f
Fixes nickel-org#285.
Auto merge of #290 - Ryman:disable_mime_guess, r=Ryman
31c0da0
fix(send_file): don't overwrite the ContentType header if it exists Fixes #285.
No branches or pull requests
The file has no file extension, but I know the mimetype.
Some ideas:
set_header_fallback
insidesend_file
so I can set the header beforehandResponder
for file objects, changesend_file
to build the mimetype guessing on top of that.The text was updated successfully, but these errors were encountered: