Set correct mime type for profile images

Этот коммит содержится в:
Florian Orben
2015-10-25 18:02:36 +01:00
родитель dc439fd7e8
Коммит 73e6f74edf

Просмотреть файл

@@ -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("Cache-Control", "max-age=86400, public") // 24 hrs
} }
w.Header().Set("Content-Type", "image/png")
w.Write(img) w.Write(img)
} }
} }