-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
MimeMappings does not include application/wasm #30885
Comments
Looking at #17254 (comment), it sounds like we were not waiting for IANA official registration but rather its adoption by Servlet containers. It looks like this MIME type got added in Tomcat with apache/tomcat@54898ee . Maybe we should consider it then? |
Tomcat added it in 9.0.37 so I think we should add it. Like Phil, I thought we had some tests that checked our mappings were in sync with Tomcat's but we haven't had a test failure so I'm not sure what's going on there. |
I think this may explain it:
So if Jetty or Undertow add new mappings that aren't in Boot's mappings, we'll get a test failure. If Tomcat adds a new mapping, it'll get overwritten by Boot's mappings and we won't notice it. I think we should try to improve the tests (it's |
In early 2020, Tomcat aligned the mappings that it uses for embedded instances with those that were configured in its |
Hi, is it possible to assign this to me? I can give it a go. 🙂 |
I gave it a try and raised a PR #30897 . Hope it's not a problem. I basically added the missing Tomcat default mappings to I only added the missing mappings and didn't touch the ones who already existed. Though, I noticed some differences in the Tomcat mappings to the already existing Boot mappings. Few differences for example are:
Not sure if this is a concern. |
Thanks, @StefanBratanov, but as indicated by the comments above, I am already working on this. |
Sure, no worries! Thought it's unassigned. |
We discussed this today and decided to use this issue to only add a mapping for |
spring-boot/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/MimeMappings.java
Line 206 in cc18076
Please prepend:
To the indicated line. Currently I'm handling recognition of the wasm payload as such:
Thank you for your time!
See (https://webassembly.org/docs/web/) for further details on the type.
This was previously held up by IANA status which has now been resolved.
References:
WebAssembly/spec#573 (comment)
https://www.iana.org/assignments/media-types/application/wasm
#17254
The text was updated successfully, but these errors were encountered: