aboutsummaryrefslogtreecommitdiffstats
path: root/routers/utils
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-02-19 21:36:43 +0000
committerGitHub <noreply@github.com>2021-02-19 22:36:43 +0100
commitaa4f9180e4932a9813e898bf3bd9ac91924eeb03 (patch)
treee181203ffc52a8bb1740fdb81aeeeba5183c42bf /routers/utils
parent39aa11f9c0d8aabd188f543d60752e0b8ff95cc5 (diff)
downloadgitea-aa4f9180e4932a9813e898bf3bd9ac91924eeb03.tar.gz
gitea-aa4f9180e4932a9813e898bf3bd9ac91924eeb03.zip
Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999)
Also removes some unnecessary uses of fmt.Sprintf and adds documentation strings Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers/utils')
-rw-r--r--routers/utils/utils_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/utils/utils_test.go b/routers/utils/utils_test.go
index ec5e69862a..78ab3d20ee 100644
--- a/routers/utils/utils_test.go
+++ b/routers/utils/utils_test.go
@@ -35,7 +35,7 @@ func TestIsValidSlackChannel(t *testing.T) {
}
func TestIsExternalURL(t *testing.T) {
- setting.AppURL = "https://try.gitea.io"
+ setting.AppURL = "https://try.gitea.io/"
type test struct {
Expected bool
RawURL string