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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-18 23:02:30 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-18 23:02:30 +0300
commit41fe97390ceddf945f3d967b8fdb3de4c66b7dea (patch)
tree9c8d89a8624828992f06d892cd2f43818ff5dcc8 /workhorse/backend.go
parent0804d2dc31052fb45a1efecedc8e06ce9bc32862 (diff)
Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42
Diffstat (limited to 'workhorse/backend.go')
-rw-r--r--workhorse/backend.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/workhorse/backend.go b/workhorse/backend.go
index aef1214abc9..5aa246aa0e8 100644
--- a/workhorse/backend.go
+++ b/workhorse/backend.go
@@ -18,8 +18,8 @@ func parseAuthBackend(authBackend string) (*url.URL, error) {
}
}
- if backendURL.Scheme != "http" {
- return nil, fmt.Errorf("invalid scheme, only 'http' is allowed: %q", authBackend)
+ if backendURL.Scheme != "http" && backendURL.Scheme != "https" {
+ return nil, fmt.Errorf("invalid scheme, only 'http' and 'https' are allowed: %q", authBackend)
}
if backendURL.Host == "" {