summaryrefslogtreecommitdiffstats
path: root/routers/common/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/common/repo.go')
-rw-r--r--routers/common/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/common/repo.go b/routers/common/repo.go
index 8d33fb07fb..af9170164e 100644
--- a/routers/common/repo.go
+++ b/routers/common/repo.go
@@ -69,7 +69,7 @@ func ServeData(ctx *context.Context, name string, size int64, reader io.Reader)
fileExtension := strings.ToLower(filepath.Ext(name))
mappedMimeType = setting.MimeTypeMap.Map[fileExtension]
}
- if st.IsText() || ctx.QueryBool("render") {
+ if st.IsText() || ctx.FormBool("render") {
cs, err := charset.DetectEncoding(buf)
if err != nil {
log.Error("Detect raw file %s charset failed: %v, using by default utf-8", name, err)