Merge pull request #679 from mattermost/fix-file-content-type

Blank Content-Type for file GETs.
Этот коммит содержится в:
Harrison Healey
2015-09-14 16:17:22 -04:00
родитель 312f7d7656 0654b0c06b
Коммит c447db6e78
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@@ -349,6 +349,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.Header().Set("Content-Type", "") // need to provide proper Content-Type in the future
w.Write(f)
}