Skip to content

Commit

Permalink
vweb: remove the extra '/' in scan_static_directory (#14806)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghosttk committed Jun 21, 2022
1 parent 9f5e442 commit 8172fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/vweb/vweb.v
Expand Up @@ -613,7 +613,7 @@ fn (mut ctx Context) scan_static_directory(directory_path string, mount_path str
for file in files {
full_path := os.join_path(directory_path, file)
if os.is_dir(full_path) {
ctx.scan_static_directory(full_path, mount_path + '/' + file)
ctx.scan_static_directory(full_path, mount_path + file)
} else if file.contains('.') && !file.starts_with('.') && !file.ends_with('.') {
ext := os.file_ext(file)
// Rudimentary guard against adding files not in mime_types.
Expand Down

0 comments on commit 8172fec

Please sign in to comment.