summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-19 12:53:10 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-19 12:53:10 -0700
commit34d1be9ba1f8fa0b6e97c86e033885d5ad1a6a3d (patch)
tree3a5b9d83cd697106a8eecde3ee432acaa587f527
parent859fd9822e6b41d26437cc313300d9b630a73ea5 (diff)
parentb5cee7ae2428096fc6398672dc86a9cef9e831df (diff)
downloadgitlab-shell-34d1be9ba1f8fa0b6e97c86e033885d5ad1a6a3d.tar.gz
Merge pull request #39 from dex4er/bugfix_https_with_nonstandard_port
https can be served also on non-standard port
-rw-r--r--lib/gitlab_net.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb
index d47209e..ae011b9 100644
--- a/lib/gitlab_net.rb
+++ b/lib/gitlab_net.rb
@@ -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