jooby-project / jooby

The modular web framework for Java and Kotlin
https://jooby.io
Apache License 2.0
1.7k stars 200 forks source link

Support correct mime type for .wasm files #3403

Closed rjaros closed 4 months ago

rjaros commented 4 months ago

Currently *.wasm files (WebAssembly binaries) are served as application/octet-stream, but browsers expect application/wasm mime type.

edgarespinawt commented 4 months ago

would you like to send a PR? Just add the new type into MediaType, check the byFile static method.

rjaros commented 4 months ago

https://github.com/jooby-project/jooby/pull/3404