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
current mime_guess is a hardcoded list.
taking a callback to optionally allow mapping certain file exts to something other than the hardcoded list would be helpful
some types are missed in the mime_guess, and sometimes people may want to intentionally override the mime for well known file types
take a callback and if it's set, preferred over here https://github.com/tower-rs/tower-http/blob/main/tower-http/src/services/fs/serve_dir/open_file.rs#L76
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature Request
current mime_guess is a hardcoded list.
taking a callback to optionally allow mapping certain file exts to something other than the hardcoded list would be helpful
Motivation
some types are missed in the mime_guess, and sometimes people may want to intentionally override the mime for well known file types
Proposal
take a callback and if it's set, preferred over here https://github.com/tower-rs/tower-http/blob/main/tower-http/src/services/fs/serve_dir/open_file.rs#L76
Alternatives
The text was updated successfully, but these errors were encountered: