src

Go monorepo.
Log | Files | Refs

commit f2812a4cd3a2196f76167ff5c9ec233f9f3072af
parent 458fcc3cefa22c4682537ce76d3e50a02747b9a7
Author: dwrz <dwrz@dwrz.net>
Date:   Thu,  2 Feb 2023 14:13:32 +0000

Add svg content type

Diffstat:
Mcmd/web/site/static.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/cmd/web/site/static.go b/cmd/web/site/static.go @@ -30,6 +30,8 @@ func (s *Site) static(w http.ResponseWriter, r *http.Request) { w.Header().Add("Content-Type", "text/css; charset=utf-8") case ".js": w.Header().Add("Content-Type", "text/javascript; charset=utf-8") + case ".svg": + w.Header().Add("Content-Type", "image/svg+xml; charset=utf-8") default: w.Header().Add("Content-Type", http.DetectContentType(f)) }