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 | |
parent | 21a1b8e5a35c61bff30145ac3194ea893a9c6b68 (diff) |
fix #367
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | modules/setting/setting.go | 5 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.4.7.0824 Alpha" +const APP_VER = "0.4.7.0825 Alpha" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 0cf1a789..deb16518 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" { diff --git a/templates/.VERSION b/templates/.VERSION index 3e68f858..f4c20dee 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.4.7.0824 Alpha
\ No newline at end of file +0.4.7.0825 Alpha
\ No newline at end of file |