Skip to content

Repro for content-type issue for .mjs files with Javalin

Notifications You must be signed in to change notification settings

crummy/javalin-static-mime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javalin .mjs MIME type

This project reproduces an issue I've discovered with Javalin returning no Content-Type header for .mjs files.

Instructions

  • mvn exec:java
  • curl -I -X GET http://localhost:7070/test.js
    • Observe header: Content-Type: application/javascript
  • curl -I -X GET http://localhost:7070/test.mjs
    • Observe no Content-Type header

Expected behaviour: .mjs should have Content-Type: application/javascript header

About

Repro for content-type issue for .mjs files with Javalin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages