Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

get_mime_extensions disregards the suffix #74

Open
alecmocatta opened this issue Jun 5, 2022 · 0 comments
Open

get_mime_extensions disregards the suffix #74

alecmocatta opened this issue Jun 5, 2022 · 0 comments

Comments

@alecmocatta
Copy link

get_mime_extensions behaves differently to get_mime_extensions_str, in that it seems to disregard the suffix, breaking certain common mime types:

// works:
mime_guess::get_extensions("image", "svg+xml")

// fails:
mime_guess::get_mime_extensions("image/svg+xml".parse().unwrap())
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant