summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-10-26 08:00:11 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-10-26 08:00:11 -0400
commit62af84423e63b20727b1515c2ab3d78bae93f335 (patch)
tree89bd9c0d14559fdcd71257cc2852af80b51deeeb /api
parentae2898107d275176126ab07ca1886fd7fd7ddad4 (diff)
parent73e6f74edfed0a2dda1ccc3d6d60128a9c607c10 (diff)
downloadchat-62af84423e63b20727b1515c2ab3d78bae93f335.tar.gz
chat-62af84423e63b20727b1515c2ab3d78bae93f335.tar.bz2
chat-62af84423e63b20727b1515c2ab3d78bae93f335.zip
Merge pull request #1175 from florianorben/profile_mime
Set mime type for profile images
Diffstat (limited to 'api')
-rw-r--r--api/user.go1
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)
}
}