all repos — homestead @ 5ca6e013dfd43d10cd32486df0e817d3679ca3dd

Code for my website

enable easier MIME type detection

Alan Pearce
commit

5ca6e013dfd43d10cd32486df0e817d3679ca3dd

parent

0c6f24968bf2ce9b83dd6897de1a1a554891401c

1 file changed, 8 insertions(+), 0 deletions(-)

changed files
M internal/storage/sqlite/file.gointernal/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 +}