mirror of
https://github.com/axllent/mailpit.git
synced 2025-08-13 20:04:49 +02:00
Fix: Include font/woff content type to embedded controller
This commit is contained in:
@@ -71,6 +71,8 @@ func contentType(p string) string {
|
|||||||
return "image/jpeg"
|
return "image/jpeg"
|
||||||
case strings.HasSuffix(p, ".gif"):
|
case strings.HasSuffix(p, ".gif"):
|
||||||
return "image/gif"
|
return "image/gif"
|
||||||
|
case strings.HasSuffix(p, ".woff"):
|
||||||
|
return "font/woff"
|
||||||
case strings.HasSuffix(p, ".woff2"):
|
case strings.HasSuffix(p, ".woff2"):
|
||||||
return "font/woff2"
|
return "font/woff2"
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user