diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-25 09:45:39 +0800 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-25 09:45:39 +0800 |
commit | f2c263c54facdcbc9375a47535c0389fd7d05875 (patch) | |
tree | 748120ce2f60717a1af51d1a9789fd252971570b /modules | |
parent | 21a1b8e5a35c61bff30145ac3194ea893a9c6b68 (diff) | |
download | gitea-f2c263c54facdcbc9375a47535c0389fd7d05875.tar.gz gitea-f2c263c54facdcbc9375a47535c0389fd7d05875.zip |
fix #367
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 0cf1a78930..deb1651895 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -156,7 +156,10 @@ func NewConfigContext() { AppName = Cfg.MustValue("", "APP_NAME", "Gogs: Go Git Service") AppLogo = Cfg.MustValue("", "APP_LOGO", "img/favicon.png") - AppUrl = Cfg.MustValue("server", "ROOT_URL", "http://localhost:3000") + AppUrl = Cfg.MustValue("server", "ROOT_URL", "http://localhost:3000/") + if AppUrl[len(AppUrl)-1] != '/' { + AppUrl += "/" + } Protocol = HTTP if Cfg.MustValue("server", "PROTOCOL") == "https" { |