mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixing profile image tag (#7435)
* Fixing profile image tag * Fixing unit test * Fixing unit test
This commit is contained in:
committed by
Joram Wilander
parent
0643bf5159
commit
99b7d65504
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user