codebase 3.1.2 → 3.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/codebase/command.rb +5 -1
- metadata +1 -1
data/lib/codebase/command.rb
CHANGED
@@ -60,11 +60,15 @@ module Codebase
|
|
60
60
|
else
|
61
61
|
req = Net::HTTP::Get.new(uri.path)
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
req.basic_auth(username, password)
|
65
65
|
req.add_field("Accept", "application/xml")
|
66
66
|
req.add_field("Content-type", "application/xml")
|
67
67
|
res = Net::HTTP.new(uri.host, uri.port)
|
68
|
+
if url.include?('https://')
|
69
|
+
res.use_ssl = true
|
70
|
+
res.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
71
|
+
end
|
68
72
|
res = res.request(req, data)
|
69
73
|
case res
|
70
74
|
when Net::HTTPSuccess
|