-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
mime: jxl images are served with incorrect mimetype #70165
Comments
Related Issues and Documentation (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
We expect your system /etc/mime.types file to have mappings like this. What type of system are you deploying to? What do you see in the /etc/mime.types file? |
@ianlancetaylor I'm doing this on my dev machine, which is running Mac OS 15.1. I don't see any |
Change https://go.dev/cl/624596 mentions this issue: |
Duplicate of #69530 |
Go version
go version go1.23.2 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I served a directory with images using go static server. I am serving 2 files, 1 is
.jpg
another is.jxl
. A repo with code is here https://github.com/akmittal/jxl-mimeWhat did you see happen?
.jxl
files are not served with the correct mimetype. Which prevents the browser to display images.What did you expect to see?
Browser prompts to download image instead of displaying in-browser.
.jxl
is supported file extension as per https://www.iana.org/assignments/media-types/media-types.xhtml#imageThe text was updated successfully, but these errors were encountered: