From 9b2e90279d28f34f256ae10310644346c2757727 Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Thu, 13 Feb 2025 22:16:46 +1300 Subject: [PATCH] Fix: Include font/woff content type to embedded controller --- server/embed.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/embed.go b/server/embed.go index 0118bef..fba2c81 100644 --- a/server/embed.go +++ b/server/embed.go @@ -71,6 +71,8 @@ func contentType(p string) string { return "image/jpeg" case strings.HasSuffix(p, ".gif"): return "image/gif" + case strings.HasSuffix(p, ".woff"): + return "font/woff" case strings.HasSuffix(p, ".woff2"): return "font/woff2" default: