so stupid

This commit is contained in:
Laptop
2025-04-16 22:33:08 +03:00
parent a2d6d501b3
commit 0ca7a3986a
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ func Load(r *fiber.App) {
return err
}
c.Request().Header.SetContentType("text/html")
c.Response().Header.SetContentType("text/html")
return templates.Base("preferences", templates.Preferences(p), nil).Render(context.Background(), c)
})

View File

@@ -63,7 +63,7 @@ func Load(r *fiber.App) {
return err
}
c.Request().Header.SetContentType("image/jpeg")
c.Response().Header.SetContentType("image/jpeg")
c.Set("Cache-Control", cfg.ImageCacheControl)
//return c.Send(resp.Body())
pr := misc.AcquireProxyReader()