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:
Diffstat (limited to 'config/initializers/rest-client-hostname_override.rb')
-rw-r--r--config/initializers/rest-client-hostname_override.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/initializers/rest-client-hostname_override.rb b/config/initializers/rest-client-hostname_override.rb
index bb8995a4659..2fb3b9fc27d 100644
--- a/config/initializers/rest-client-hostname_override.rb
+++ b/config/initializers/rest-client-hostname_override.rb
@@ -9,7 +9,8 @@ module RestClient
begin
ip, hostname_override = Gitlab::UrlBlocker.validate!(uri, allow_local_network: allow_settings_local_requests?,
allow_localhost: allow_settings_local_requests?,
- dns_rebind_protection: dns_rebind_protection?)
+ dns_rebind_protection: dns_rebind_protection?,
+ schemes: %w[http https])
self.hostname_override = hostname_override
rescue Gitlab::UrlBlocker::BlockedUrlError => e