From e8e40691069f1475ee7798a584352a80e892b635 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Thu, 28 Sep 2017 19:59:58 +0100 Subject: Rework the artifacts proxy to operate within Pages group domains --- helpers_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helpers_test.go') diff --git a/helpers_test.go b/helpers_test.go index c1d1bf34..9f372224 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -10,6 +10,7 @@ import ( "net/http" "os" "os/exec" + "strings" "testing" "time" @@ -113,6 +114,8 @@ func (l ListenSpec) URL(suffix string) string { scheme = "https" } + suffix = strings.TrimPrefix(suffix, "/") + return fmt.Sprintf("%s://%s/%s", scheme, l.JoinHostPort(), suffix) } -- cgit v1.2.3