secured_cloud_api_client 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/secured_cloud_api_client/http_client.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebe769098769ab361d1f3ec4f280a60c72a8928e
|
4
|
+
data.tar.gz: bae48e09d4e7670ff3d884cbb8c7d3d307476c3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09eb2be1dc2b87cce445b9df62c621d94e9e111bcdfff8dce7becc387c6a5033f6c72ce306df654c1f0a629adfc32f2ca6f3d993847cefcf0da6b1d3e8f41f12
|
7
|
+
data.tar.gz: f5bbfcd85ce4741b8dd37fb46e185a6d335af5119d2190c46fdfd42f683c435a193c57dac961ccd4eaca26bc8f68775bcc1c0a2e8e50ed56cfffa105d0507e51
|
@@ -31,7 +31,7 @@ class HttpClient
|
|
31
31
|
req['Authorization'] = AUTH_SCHEME + createAuthorization("GET", url)
|
32
32
|
|
33
33
|
#Execute request.
|
34
|
-
res = Net::HTTP.start(@url.host, @url.port) {|http|http.request(req)} # Net::HTTPResponse object
|
34
|
+
res = Net::HTTP.start(@url.host, @url.port,:use_ssl => @url.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|http.request(req)} # Net::HTTPResponse object
|
35
35
|
|
36
36
|
#Return response.
|
37
37
|
return res
|
@@ -54,7 +54,7 @@ class HttpClient
|
|
54
54
|
req['Authorization'] = AUTH_SCHEME + createAuthorization("POST", url)
|
55
55
|
|
56
56
|
#Execute request.
|
57
|
-
res = Net::HTTP.start(@url.host, @url.port) {|http|http.request(req)} # Net::HTTPResponse object
|
57
|
+
res = Net::HTTP.start(@url.host, @url.port,:use_ssl => @url.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|http.request(req)} # Net::HTTPResponse object
|
58
58
|
|
59
59
|
#Return response.
|
60
60
|
return res
|
@@ -87,7 +87,7 @@ class HttpClient
|
|
87
87
|
req['Authorization'] = AUTH_SCHEME + createAuthorization("DELETE", url)
|
88
88
|
|
89
89
|
#Execute request.
|
90
|
-
res = Net::HTTP.start(@url.host, @url.port) {|http|http.request(req)} # Net::HTTPResponse object
|
90
|
+
res = Net::HTTP.start(@url.host, @url.port,:use_ssl => @url.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|http.request(req)} # Net::HTTPResponse object
|
91
91
|
|
92
92
|
#Return response.
|
93
93
|
return res
|
@@ -120,7 +120,7 @@ class HttpClient
|
|
120
120
|
req['Authorization'] = AUTH_SCHEME + createAuthorization("PUT", url)
|
121
121
|
|
122
122
|
#Execute request.
|
123
|
-
res = Net::HTTP.start(@url.host, @url.port) {|http|http.request(req)} # Net::HTTPResponse object
|
123
|
+
res = Net::HTTP.start(@url.host, @url.port,:use_ssl => @url.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|http.request(req)} # Net::HTTPResponse object
|
124
124
|
|
125
125
|
#Return response.
|
126
126
|
return res
|