From 30f22ec9c757d41038a8fcaa4c3ea963301d2574 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Thu, 27 Aug 2015 11:05:18 -0700 Subject: MM-2033 fixes img showing infinity progress --- api/file.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api/file.go') 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) } -- cgit v1.2.3-1-g7c22