Commit Graph

20 Commits (5eafe2b17eb9a1cf1068e7a3ed7a57a2730f04b0)

Author SHA1 Message Date
Unknwon 93f03707a7 set text/plain for non-binary files in raw mode
Unknwon 19423957b1 rename import path
Unknwon 9a2e43bff2 move out git module and send push hook
无闻 8be0bb177b Merge pull request from donbowman/mime-type
43bfee0d48 reverted my change
Don Bowman 4137426c88 43bfee0d48 reverted my change
423b1c69be, which in turn
causes all content to be served as text/plain. Let go decide
what the mime type is (e.g. text/html instead of text/plain).
Unknwon e67659bf8e fix serve attachment content type
Vladimir Vissoultchev 2cc050e21e Fix UTF-8 in upper-case, use ansi charset for all non UTF-8 encodings
Vladimir Vissoultchev 43bfee0d48 Raw text file view returns correct charset in content-type header if not utf-8
Don Bowman 423b1c69be 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."
Unknwon 32152d2363 routers/repo: set raw page content type to 'text/plain'
Unknwon a0f9197b45 GetFile api
Unknwon 23eec25274 Fix , fix , fix
Unknwon 5c4bc3c848 Huge updates!!!!! Be careful to merge!!!!
Unknwon 8dd07c0ddd New UI merge in progress
Jan Oliver Oelerich 6fe43eb8d4 Fixed directory permissions for the zip download router
If the archives/ directory is created with 0655, it results in a permission error.
slene 4ee6bc4fca fix for new git api
Unknown 688ec6ecbd Fixed
Unknown 04890904f9 fix
Unknown 956f011dd3 Fix
slene 4fafc76052 zip archive download