From ac8de4659b463b6e46bb2dadcb38ddb621659d04 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Fri, 16 Nov 2018 16:17:23 +0200 Subject: [PATCH] [common] Add MIME types for images --- sources/lib/common/mime.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sources/lib/common/mime.go b/sources/lib/common/mime.go index 2bf2948..c96411b 100644 --- a/sources/lib/common/mime.go +++ b/sources/lib/common/mime.go @@ -36,5 +36,11 @@ var MimeTypesByExtension = map[string]string { "xslt" : MimeTypeXml, "xhtml" : MimeTypeXhtml, + "svg" : "image/svg+xml", + "png" : "image/png", + "gif" : "image/gif", + "jpeg" : "image/jpeg", + "jpg" : "image/jpeg", + }