How to map mime type #7301
Answered
by
yawkat
siddharth223437
asked this question in
General
How to map mime type
#7301
-
Micronaut think that all ".mjs" file are "text/plain" so how can i tell micronaut to map all ".mjs" to "application/javascript". Below is springboot code:
|
Beta Was this translation helpful? Give feedback.
Answered by
yawkat
May 3, 2022
Replies: 1 comment
-
I don't think there's a supported way to do this atm. You could try amending this file with your type, and putting it into |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
siddharth223437
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think there's a supported way to do this atm. You could try amending this file with your type, and putting it into
META-INF/http/mime.types
micronaut-core/http/src/main/resources/META-INF/http/mime.types
Line 7 in b5cc40e