summaryrefslogtreecommitdiffstats
path: root/api/file.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-09-14 14:18:01 -0400
committerJoramWilander <jwawilander@gmail.com>2015-09-14 14:18:01 -0400
commit0654b0c06b516172a5d83759e2b781c9f37f854f (patch)
tree5565fc73ea59f2b0f0b6085d7ff9e891864ea57c /api/file.go
parent8d021a13f8509372f3deeb6a3513872b0d0b5427 (diff)
downloadchat-0654b0c06b516172a5d83759e2b781c9f37f854f.tar.gz
chat-0654b0c06b516172a5d83759e2b781c9f37f854f.tar.bz2
chat-0654b0c06b516172a5d83759e2b781c9f37f854f.zip
Blank Content-Type for file GETs.
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 1d8244fac..692558acf 100644
--- a/api/file.go
+++ b/api/file.go
@@ -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)
}