Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-09-28 21:59:58 +0300
committerNick Thomas <nick@gitlab.com>2017-10-02 16:05:50 +0300
commite8e40691069f1475ee7798a584352a80e892b635 (patch)
tree36a0dad27af2230c494af83110637d409c46a670 /helpers_test.go
parentb322a578e5cfa144f5d0c5be3f43b2a0c9d8d42e (diff)
Rework the artifacts proxy to operate within Pages group domains
Diffstat (limited to 'helpers_test.go')
-rw-r--r--helpers_test.go3
1 files changed, 3 insertions, 0 deletions
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)
}