From a27b879accb191b6a6c6e76a6251ed751967f73a Mon Sep 17 00:00:00 2001 From: tjpcc Date: Thu, 26 Jan 2023 16:22:58 -0700 Subject: test coverage and resulting bugfixes --- contrib/fs/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/fs/file.go') 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 == "" { -- cgit v1.2.3