diff options
author | Vladimir Vissoultchev <wqweto@gmail.com> | 2015-07-29 17:58:03 +0300 |
---|---|---|
committer | Vladimir Vissoultchev <wqweto@gmail.com> | 2015-07-29 17:58:03 +0300 |
commit | 2cc050e21ed35d95d824cc22d129fc22ee1318a4 (patch) | |
tree | 6a6a17749a305325d8226f8b2950cfd0404860ef /routers/repo/download.go | |
parent | 4917d29c121af221c3768871efabc5f99b88c4b8 (diff) | |
download | gitea-2cc050e21ed35d95d824cc22d129fc22ee1318a4.tar.gz gitea-2cc050e21ed35d95d824cc22d129fc22ee1318a4.zip |
Fix UTF-8 in upper-case, use ansi charset for all non UTF-8 encodings
Diffstat (limited to 'routers/repo/download.go')
-rw-r--r-- | routers/repo/download.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/download.go b/routers/repo/download.go index 8e9efba31b..c71f8d293e 100644 --- a/routers/repo/download.go +++ b/routers/repo/download.go @@ -28,7 +28,7 @@ func ServeBlob(ctx *middleware.Context, blob *git.Blob) error { _, isTextFile := base.IsTextFile(buf) if isTextFile { charset, _ := base.DetectEncoding(buf) - if charset != "utf-8" { + if charset != "UTF-8" { ctx.Resp.Header().Set("Content-Type", "text/plain; charset="+charset) } } else { |