feat: embed static files into binary
This commit is contained in:
@ -53,7 +53,7 @@ func imageProxy(l *utils.Logger) http.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
w.Header().Add("Content-type", mime.TypeByExtension("."+ext))
|
||||
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())
|
||||
|
Reference in New Issue
Block a user