chore: upgrade to go1.24

This commit is contained in:
Solomon Victorino
2025-04-05 15:11:51 -06:00
committed by ngn
parent 50784a6ab5
commit 0474c2dcb6
5 changed files with 23 additions and 11 deletions

View File

@ -58,7 +58,7 @@ func imageProxy(l *utils.Logger) http.HandlerFunc {
w.Header().Set("Content-type", mime.TypeByExtension("."+ext))
w.Header().Add("Cache-Control", "max-age=1296000")
if _, err = io.Copy(w, res.Body); err != nil {
l.Error("unable to write image, %s", err.Error())
l.Errorf("unable to write image, %s", err.Error())
}
}
}