Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 455 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 455 Bytes

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