Commit 34d1be9b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #39 from dex4er/bugfix_https_with_nonstandard_port

https can be served also on non-standard port
parents 859fd982 b5cee7ae
......@@ -42,7 +42,7 @@ class GitlabNet
def get(url)
url = URI.parse(url)
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?
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