From 5c6ab490c7ad2c391364789767eb2356c430c95e Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Sun, 12 Aug 2018 22:39:06 +0530 Subject: [PATCH] config.go: fix CDN_PREFIX sanitisation typo --- api/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/config.go b/api/config.go index 6115bf8..89ab5e4 100644 --- a/api/config.go +++ b/api/config.go @@ -69,7 +69,7 @@ func configParse() error { os.Setenv("CDN_PREFIX", os.Getenv("ORIGIN")) } - os.Setenv("CDN_PREFIX", strings.TrimSuffix(os.Getenv("ORIGIN"), "/")) + os.Setenv("CDN_PREFIX", strings.TrimSuffix(os.Getenv("CDN_PREFIX"), "/")) os.Setenv("CDN_PREFIX", addHttpIfAbsent(os.Getenv("CDN_PREFIX"))) if os.Getenv("FORBID_NEW_OWNERS") != "true" && os.Getenv("FORBID_NEW_OWNERS") != "false" {