jfhbrook / node-ecstatic

A static file server middleware that works with core http, express or on the CLI!
https://github.com/jfhbrook/node-ecstatic
MIT License
975 stars 194 forks source link

Fixed double encoding in directory listings when directory name contains spaces #138

Closed VilleSalonen closed 9 years ago

VilleSalonen commented 9 years ago

If a directory listing was requested for a directory with spaces in its name, already escaped url was combined with the file names.

Expected: subdir_with%20spaces\file_with%20space.html
Got:      subdir_with%2520spaces\file_with%20space.html
jfhbrook commented 9 years ago

I'm concerned about the replace being missing. Otherwise, I'll try to give this some TLC later in the week.