digisfera / lr-http-server

An HTTP server with livereload included
31 stars 9 forks source link

ability to set default extensions #8

Closed oroce closed 7 years ago

oroce commented 7 years ago

Hey,

I added a small feature to set the default extension to be used when serving files, it can be really useful if you have a file named foo.html and you want it show when you try to open /foo, not just when you type /foo.html in your browser.

Thankfully serve-static does already support this feature.

oroce commented 7 years ago

@manuelcabral thanks for the quick fixes

manuelcabral commented 7 years ago

Thanks for the PR