The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(mime): register SVG MIME type in init function (#1060)

authored by

Xe Iaso and committed by
GitHub
3cdac095 fe0c6c40

+6
+6
internal/slog.go
··· 5 5 "fmt" 6 6 "io" 7 7 "log/slog" 8 + "mime" 8 9 "net/http" 9 10 "os" 10 11 ) ··· 14 15 15 16 leveler *slog.LevelVar 16 17 ) 18 + 19 + func init() { 20 + // Register additional MIME types 21 + mime.AddExtensionType(".svg", "image/svg+xml") 22 + } 17 23 18 24 func Slog() { 19 25 var programLevel slog.Level