serve files from Storage implementation
1 file changed, 1 insertion(+), 5 deletions(-)
changed files
M internal/storage/files/writer.go → internal/storage/files/writer.go
@@ -6,7 +6,6 @@ "context" "io" "os" "path/filepath" - "strings" "go.alanpearce.eu/x/log"@@ -177,8 +176,5 @@ return errors.WithMessage(err, "could not create directory") } func (f *Files) join(filename string) string { - if strings.HasSuffix(filename, "/") { - filename = filename + "index.html" - } - return filepath.Join(f.outputDirectory, filename) + return filepath.Join(f.outputDirectory, pathNameToFileName(filename)) }