greggman / servez

A simple web server for local web development.
https://greggman.github.io/servez/
295 stars 48 forks source link

folder listings and directories - doesn't add closing "/" #2

Closed patrickhlauke closed 7 years ago

patrickhlauke commented 7 years ago

Running Servez to initially show its own automatically generated directory listing, if I then follow a link to a directory, the resulting url is missing the closing slash. So, say from the initial listing I go to a folder called "touch", the URL I land on is http://localhost:8080/touch (no slash). This then messes up any links/calls for resources that use "./", "../" or are called without extra path info as they're in the same directory.

Not sure if this is something that can be fixed here or if it's due to some other component used...

patrickhlauke commented 7 years ago

And similarly, if I manually type in a directory without the closing slash, it doesn't automagically add it at the end (like, say, Apache would do)

greggman commented 7 years ago

Thanks for pointing out the issue. I think it's fixed. Please try it

https://github.com/greggman/servez/releases/latest

patrickhlauke commented 7 years ago

Wonderful, works perfectly. Thanks for the super-speedy fix 👍