diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-10-26 08:00:11 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-10-26 08:00:11 -0400 |
commit | 62af84423e63b20727b1515c2ab3d78bae93f335 (patch) | |
tree | 89bd9c0d14559fdcd71257cc2852af80b51deeeb | |
parent | ae2898107d275176126ab07ca1886fd7fd7ddad4 (diff) | |
parent | 73e6f74edfed0a2dda1ccc3d6d60128a9c607c10 (diff) | |
download | chat-62af84423e63b20727b1515c2ab3d78bae93f335.tar.gz chat-62af84423e63b20727b1515c2ab3d78bae93f335.tar.bz2 chat-62af84423e63b20727b1515c2ab3d78bae93f335.zip |
Merge pull request #1175 from florianorben/profile_mime
Set 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) } } |