unosquare / embedio

A tiny, cross-platform, module based web server for .NET
http://unosquare.github.io/embedio
Other
1.46k stars 176 forks source link

URLs for files in directories should not end with a slash. #503

Closed rbdavison closed 3 years ago

rbdavison commented 3 years ago

When listing directories the URLs for files end with a slash. This results in the issues (such as when retrieving files with some tools like wget) that file is downloaded as index.html instead of the files correct name.

rdeago commented 3 years ago

Thanks for the fix @rbdavison!

rbdavison commented 3 years ago

Ha ha sweet. Thanks for merging this so quickly... I was readying the contributing after I created this pull request. I guess you can close that once the next version is available on NuGet.org. 😃