Commit b5cee7ae authored by Piotr Roszatycki's avatar Piotr Roszatycki Committed by Git Version Control

https can be served also on non-standard port

parent ff484e65
...@@ -42,7 +42,7 @@ class GitlabNet ...@@ -42,7 +42,7 @@ class GitlabNet
def get(url) def get(url)
url = URI.parse(url) url = URI.parse(url)
http = Net::HTTP.new(url.host, url.port) http = Net::HTTP.new(url.host, url.port)
http.use_ssl = (url.port == 443) http.use_ssl = (url.scheme == 'https')
if config.http_settings['self_signed_cert'] && http.use_ssl? if config.http_settings['self_signed_cert'] && http.use_ssl?
http.verify_mode = OpenSSL::SSL::VERIFY_NONE http.verify_mode = OpenSSL::SSL::VERIFY_NONE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment