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:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.go b/main.go
index 75578913..c5c2047d 100644
--- a/main.go
+++ b/main.go
@@ -15,7 +15,6 @@ import (
log "github.com/sirupsen/logrus"
"gitlab.com/gitlab-org/labkit/errortracking"
- "gitlab.com/gitlab-org/gitlab-pages/internal/host"
"gitlab.com/gitlab-org/gitlab-pages/internal/logging"
"gitlab.com/gitlab-org/gitlab-pages/internal/request"
"gitlab.com/gitlab-org/gitlab-pages/internal/tlsconfig"
@@ -107,8 +106,13 @@ func gitlabServerFromFlags() string {
return *gitLabAuthServer
}
- url, _ := url.Parse(*artifactsServer)
- return host.FromString(url.Host)
+ u, err := url.Parse(*artifactsServer)
+ if err != nil {
+ return ""
+ }
+
+ u.Path = ""
+ return u.String()
}
func internalGitLabServerFromFlags() string {