summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-08-27 14:47:48 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-08-27 14:47:48 -0400
commitc7e83f634aa29e0eb752c8ad5adcbcf85f6775ca (patch)
tree8d70609932e251da9740978143c706da13ba9516
parent1d23d9db60786d020dbda34eb5c37bca51d116cb (diff)
parent0bd96663f9ef1c8ec9e53fa8c9850dd75f53b202 (diff)
downloadchat-c7e83f634aa29e0eb752c8ad5adcbcf85f6775ca.tar.gz
chat-c7e83f634aa29e0eb752c8ad5adcbcf85f6775ca.tar.bz2
chat-c7e83f634aa29e0eb752c8ad5adcbcf85f6775ca.zip
Merge pull request #499 from mattermost/MM-2033
MM-2033 fixes img showing infinity progress
-rw-r--r--api/file.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/file.go b/api/file.go
index 50482a057..800c512c5 100644
--- a/api/file.go
+++ b/api/file.go
@@ -347,6 +347,7 @@ func getFile(c *Context, w http.ResponseWriter, r *http.Request) {
}
w.Header().Set("Cache-Control", "max-age=2592000, public")
+ w.Header().Set("Content-Length", strconv.Itoa(len(f)))
w.Write(f)
}