kettle11 / devserver

A simple HTTPS server for local development. Implemented in Rust.
zlib License
95 stars 15 forks source link

Return .mjs files with application/javascript mime type #10

Closed shanehandley closed 4 years ago

shanehandley commented 4 years ago

Hi, thanks for the excellent little tool you have built here.

I had a need to serve .mjs for javascript module files. Some background on why this is done sometimes here:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#Aside_%E2%80%94_.mjs_versus_.js

Cheers.

kettle11 commented 4 years ago

Good catch, that definitely should be added. I've merged your change.

Thanks!

kettle11 commented 4 years ago

@shanehandley I realized I left this project license as MIT and I want to change it to zlib, which is basically the MIT license but doesn't require attribution in binaries.

You're the only other direct contributor listed (congrats!) so just to be 100% in the clear are you OK with the license change?

shanehandley commented 4 years ago

@kettle11 Cheers, yeah no worries that's no problem for me 👍