fix: add additional mimetypes
This commit is contained in:
parent
a78c354a37
commit
658a4016fb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user