diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-08-27 14:47:48 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-08-27 14:47:48 -0400 |
commit | c7e83f634aa29e0eb752c8ad5adcbcf85f6775ca (patch) | |
tree | 8d70609932e251da9740978143c706da13ba9516 /api/file.go | |
parent | 1d23d9db60786d020dbda34eb5c37bca51d116cb (diff) | |
parent | 0bd96663f9ef1c8ec9e53fa8c9850dd75f53b202 (diff) | |
download | chat-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
Diffstat (limited to 'api/file.go')
-rw-r--r-- | api/file.go | 1 |
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) } |