summaryrefslogtreecommitdiff
path: root/contrib/fs/file.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-01-26 16:22:58 -0700
committertjpcc <tjp@ctrl-c.club>2023-01-26 16:22:58 -0700
commita27b879accb191b6a6c6e76a6251ed751967f73a (patch)
treed7c5f337ca9cb4143997665fc616759fbf5e2d3f /contrib/fs/file.go
parent32e45e3557e49cc868aa4437ef0aa56ab6470be8 (diff)
test coverage and resulting bugfixes
Diffstat (limited to 'contrib/fs/file.go')
-rw-r--r--contrib/fs/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fs/file.go b/contrib/fs/file.go
index 8cb1aeb..71428ed 100644
--- a/contrib/fs/file.go
+++ b/contrib/fs/file.go
@@ -46,7 +46,7 @@ func mediaType(filePath string) string {
if dotIdx == -1 {
return "application/octet-stream"
}
- ext := filePath[slashIdx+dotIdx:]
+ ext := filePath[slashIdx+1+dotIdx:]
mtype := mime.TypeByExtension(ext)
if mtype == "" {