summaryrefslogtreecommitdiffstats
path: root/api/file.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-08-27 11:05:18 -0700
committer=Corey Hulen <corey@hulen.com>2015-08-27 11:05:18 -0700
commit30f22ec9c757d41038a8fcaa4c3ea963301d2574 (patch)
tree138d93550fae35285653f80bd11686f2750445dd /api/file.go
parentdb7e8c12889485234fb2d1ba6556106e5fc7548b (diff)
downloadchat-30f22ec9c757d41038a8fcaa4c3ea963301d2574.tar.gz
chat-30f22ec9c757d41038a8fcaa4c3ea963301d2574.tar.bz2
chat-30f22ec9c757d41038a8fcaa4c3ea963301d2574.zip
MM-2033 fixes img showing infinity progress
Diffstat (limited to 'api/file.go')
-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)
}