From 99b7d65504ce729db4255f2d31def0859d36e87f Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Tue, 19 Sep 2017 13:34:39 -0700 Subject: Fixing profile image tag (#7435) * Fixing profile image tag * Fixing unit test * Fixing unit test --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/user.go') 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) } } -- cgit v1.2.3-1-g7c22