From dc8cf44870e6a9acd48fbb2aeb32714505cf9a8b Mon Sep 17 00:00:00 2001 From: dtookey Date: Wed, 27 Jul 2022 13:56:41 -0400 Subject: [PATCH] Added webp to mimetypes --- vinegarUtil/webLRU.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vinegarUtil/webLRU.go b/vinegarUtil/webLRU.go index 5382414..362f6d5 100644 --- a/vinegarUtil/webLRU.go +++ b/vinegarUtil/webLRU.go @@ -231,6 +231,8 @@ func GuessMimetype(filePath string) string { return "image/png" case "svg": return "image/svg+xml" + case "webp": + return "image/webp" default: log.Default().Printf("[WARN] '%s' is unrecognized MimeType. Returning as [application/octet-stream]. Please use VinegarServlet.AddMimeType() to define the appropriate response for this file extension.", ext) return "application/octet-stream"