enable easier MIME type detection
1 file changed, 8 insertions(+), 0 deletions(-)
changed files
M internal/storage/sqlite/file.go → internal/storage/sqlite/file.go
@@ -11,3 +11,11 @@ } return pathname } + +func cleanPathName(pathname string) string { + if strings.HasSuffix(pathname, ".html") { + pathname = strings.TrimSuffix(pathname, ".html") + } + + return pathname +}