diff options
author | Unknwon <u@gogs.io> | 2015-12-25 05:25:47 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-25 05:25:47 -0500 |
commit | 85af36332b89a42152c7e2b76af5e2aeb048103a (patch) | |
tree | f1eabbd273416ecf34125183c1df994b2b0ca578 /routers/user | |
parent | 13fe73303726d74356a5d94bad7556802c2900a4 (diff) | |
download | gitea-85af36332b89a42152c7e2b76af5e2aeb048103a.tar.gz gitea-85af36332b89a42152c7e2b76af5e2aeb048103a.zip |
#2282 fix utf-8 recognized as windows-1252
Diffstat (limited to 'routers/user')
-rw-r--r-- | routers/user/profile.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go index b531523e65..9007ab326f 100644 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -6,6 +6,7 @@ package user import ( "fmt" + "path" "strings" "github.com/gogits/gogs/models" @@ -38,7 +39,7 @@ func Profile(ctx *middleware.Context) { uname := ctx.Params(":username") // Special handle for FireFox requests favicon.ico. if uname == "favicon.ico" { - ctx.Redirect(setting.AppSubUrl + "/img/favicon.png") + ctx.ServeFile(path.Join(setting.StaticRootPath, "public/img/favicon.png")) return } else if strings.HasSuffix(uname, ".png") { ctx.Error(404) |