Skip to content
New issue

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

feat: add a config option to bypass mime content type sniffing #60

Merged
merged 2 commits into from
Jan 14, 2021

Conversation

Lustyn
Copy link
Contributor

@Lustyn Lustyn commented Dec 26, 2020

This PR adds a config option, nosniff, which allows the user to bypass mime sniffing.

The reasoning behind adding this is the 512 byte read at the start of every file can be quite expensive in large and/or networked filesystems. Many users might prefer that mime sniffing be on, and disabling it entirely would be a possibly breaking change so it will remain that way by default.

Let me know if anything in this PR needs changing, and thank you for this project!

@hacdias
Copy link
Owner

hacdias commented Jan 14, 2021

Thank you! Im going to release this as a major version, alongside with the other changes I just merged!

@hacdias hacdias merged commit 099479a into hacdias:master Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants