Set correct mime type for profile images

This commit is contained in:
Florian Orben
2015-10-25 18:02:36 +01:00
parent dc439fd7e8
commit 73e6f74edf

View File

@@ -814,6 +814,7 @@ func getProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "max-age=86400, public") // 24 hrs
}
w.Header().Set("Content-Type", "image/png")
w.Write(img)
}
}