indico 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/indico/helper.rb +5 -1
- data/lib/indico/version.rb +1 -1
- metadata +1 -1
data/lib/indico/helper.rb
CHANGED
@@ -5,7 +5,7 @@ module Indico
|
|
5
5
|
|
6
6
|
def self.url_join(root, api)
|
7
7
|
if !root
|
8
|
-
'
|
8
|
+
'https://apiv2.indico.io/' + api
|
9
9
|
else
|
10
10
|
Indico.cloud_protocol + root + '.indico.domains/' + api
|
11
11
|
end
|
@@ -47,6 +47,10 @@ module Indico
|
|
47
47
|
|
48
48
|
http = Net::HTTP.new(uri.host, uri.port)
|
49
49
|
|
50
|
+
if url.index('https') == 0
|
51
|
+
http.use_ssl = true
|
52
|
+
end
|
53
|
+
|
50
54
|
request = Net::HTTP::Post.new(uri.request_uri)
|
51
55
|
request.body = data_dict
|
52
56
|
|
data/lib/indico/version.rb
CHANGED