summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-09-19 13:34:39 -0700
committerJoram Wilander <jwawilander@gmail.com>2017-09-19 16:34:39 -0400
commit99b7d65504ce729db4255f2d31def0859d36e87f (patch)
tree0aa6fb4a00104931abcb0cf1bc980e749789b49d /api/user.go
parent0643bf51595396a7dab88be07a9f2b50410dedea (diff)
downloadchat-99b7d65504ce729db4255f2d31def0859d36e87f.tar.gz
chat-99b7d65504ce729db4255f2d31def0859d36e87f.tar.bz2
chat-99b7d65504ce729db4255f2d31def0859d36e87f.zip
Fixing profile image tag (#7435)
* Fixing profile image tag * Fixing unit test * Fixing unit test
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index d95d775e4..1ca46bd56 100644
--- a/api/user.go
+++ b/api/user.go
@@ -571,10 +571,10 @@ func getProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "max-age=300, public") // 5 mins
} else {
w.Header().Set("Cache-Control", "max-age=86400, public") // 24 hrs
+ w.Header().Set(model.HEADER_ETAG_SERVER, etag)
}
w.Header().Set("Content-Type", "image/png")
- w.Header().Set(model.HEADER_ETAG_SERVER, etag)
w.Write(img)
}
}