Unknown MIME type for uppercase JPG #22425
Labels
Bug
This tag is applied to issues which reports bugs.
Good First Issue (easy task)
This issue is suitable to be worked on by new contributors.
Unit: veb
Bugs/feature requests, that are related to the `veb`, V's official web framework.
Describe the bug
I used a file named P123.JPG in a veb project and V panics about the MIME type.
Reproduction Steps
Load a picture with an uppercase extension inside project using veb.
Expected Behavior
MIME types should be case insensitive.
Current Behavior
I get this error:
V panic: result not set (unknown MIME type for file extension ".JPG". You can register your MIME type in app.static_mime_types)
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.8
Environment details (OS name and version, etc.)
Linux Mint
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: