ai cooking
0
fork

Configure Feed

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

Merge pull request #125 from paulgmiller/pmiller/rightmimetypoe

get righ mime type

authored by

Paul Miller and committed by
GitHub
aa76403f e7dcc9df

+5
+5
cmd/careme/web.go
··· 16 16 "fmt" 17 17 "html/template" 18 18 "log/slog" 19 + "mime" 19 20 "net/http" 20 21 "os" 21 22 "os/signal" ··· 28 29 var favicon []byte 29 30 30 31 const sessionDuration = 365 * 24 * time.Hour 32 + 33 + func init() { 34 + _ = mime.AddExtensionType(".js", "application/javascript") 35 + } 31 36 32 37 func runServer(cfg *config.Config, logsinkCfg logsink.Config, addr string) error { 33 38 cache, err := cache.MakeCache()