fix: add additional mimetypes

This commit is contained in:
Mya 2022-06-09 13:45:37 -05:00
parent a78c354a37
commit 658a4016fb
No known key found for this signature in database
GPG Key ID: C3ECFA648DAD27FA

View File

@ -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 {