From 658a4016fbda5e9e951a3cd5349a7eed6cf922af Mon Sep 17 00:00:00 2001 From: Mya Pitzeruse Date: Thu, 9 Jun 2022 13:45:37 -0500 Subject: [PATCH] fix: add additional mimetypes --- internal/commands/host.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/commands/host.go b/internal/commands/host.go index c23265c..f00fd01 100644 --- a/internal/commands/host.go +++ b/internal/commands/host.go @@ -18,6 +18,7 @@ package commands import ( "context" + "mime" "net/http" "github.com/urfave/cli/v2" @@ -51,6 +52,10 @@ var ( Action: func(ctx *cli.Context) error { log := zaputil.Extract(ctx.Context) + _ = mime.AddExtensionType(".woff2", "application/font-woff2") + _ = mime.AddExtensionType(".woff", "application/font-woff") + _ = mime.AddExtensionType(".ttf", "font/ttf") + gitService := git.NewService(hostConfig.Git) err := gitService.Load(ctx.Context) if err != nil {