Fixing profile image tag (#7435)

* Fixing profile image tag

* Fixing unit test

* Fixing unit test
This commit is contained in:
Corey Hulen
2017-09-19 13:34:39 -07:00
committed by Joram Wilander
parent 0643bf5159
commit 99b7d65504
4 changed files with 6 additions and 6 deletions

View File

@@ -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)
}
}