Description
File paths are templated into the html verbatim. Handlebars inserts html escape characters, but this doesn't handle things like filenames containing spaces correctly.
Steps to reproduce
touch 'file with spaces.txt'
- Execute `http-server -h 127.0.0.1 -p 8080
- Open http://127.0.0.1:8080
- Click the
files with spaces.txt link
- The url is
http://127.0.0.1:8080/files, which returns a 404
Environment
HTTP Server Version: v0.1.0
Operative System: Linux