# HG changeset patch # User Kim Alvefur # Date 1457015506 -3600 # Node ID 20246b1396071e821bf41810ce2d0a016c48f4af # Parent dcc8ed11173c15fc854ea9c33a794212b1298748 mod_http_files: Preserve a trailing / in paths (fixes #639) diff -r dcc8ed11173c -r 20246b139607 plugins/mod_http_files.lua --- a/plugins/mod_http_files.lua Thu Mar 03 15:30:00 2016 +0100 +++ b/plugins/mod_http_files.lua Thu Mar 03 15:31:46 2016 +0100 @@ -75,6 +75,9 @@ out[c] = component; end end + if path:sub(-1,-1) == "/" then + out[c+1] = ""; + end return "/"..table.concat(out, "/"); end