diff options
author | Florian Orben <florian.orben@gmail.com> | 2015-10-25 18:02:36 +0100 |
---|---|---|
committer | Florian Orben <florian.orben@gmail.com> | 2015-10-25 18:02:36 +0100 |
commit | 73e6f74edfed0a2dda1ccc3d6d60128a9c607c10 (patch) | |
tree | f686148c8c1c4bc6cd4ff26f1af441c4359da9e9 | |
parent | dc439fd7e84d54a95f6c0ac2b51a21e634777436 (diff) | |
download | chat-73e6f74edfed0a2dda1ccc3d6d60128a9c607c10.tar.gz chat-73e6f74edfed0a2dda1ccc3d6d60128a9c607c10.tar.bz2 chat-73e6f74edfed0a2dda1ccc3d6d60128a9c607c10.zip |
Set correct mime type for profile images
-rw-r--r-- | api/user.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/user.go b/api/user.go index 3071e1b26..06e5336f1 100644 --- a/api/user.go +++ b/api/user.go @@ -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) } } |