aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules/mga-mirrors/files/check_mirrors_status3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status
index 6d6eff61..b31d4da5 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -59,6 +59,9 @@ def fetch_url(url, redirect_limit = 3)
http = Net::HTTP.new(uri.host, uri.port)
http.open_timeout = 5
http.read_timeout = 5
+ if uri.scheme == 'https' then
+ http.use_ssl = true
+ end
# Ruby 1.8.7 doesn't set a default User-Agent which causes at
# least one mirror to return 403
response = http.get(uri.path, {'User-Agent' => 'check_mirrors'})