]> source.dussan.org Git - gitea.git/commit
don't set mime type to text/plain. This will break serving e.g. raw images,
authorDon Bowman <don.waterloo@gmail.com>
Wed, 8 Apr 2015 00:44:38 +0000 (00:44 +0000)
committerDon Bowman <don.waterloo@gmail.com>
Wed, 8 Apr 2015 00:44:38 +0000 (00:44 +0000)
commit423b1c69be7828c331a47467b66217d190e916b9
tree9c9897bc56f5990842b404572ab1ce75194df5b4
parent639e34e362c3e4cea2532de4b811dc8bb916f9f3
don't set mime type to text/plain. This will break serving e.g. raw images,
html, etc

According to http://golang.org/pkg/net/http/#DetectContentType
"If the Header does not contain a Content-Type line, Write adds
a Content-Type set to the result of passing the initial 512 bytes
of written data to DetectContentType."
routers/repo/download.go