eshq 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/eshq/client.rb +2 -1
- data/lib/eshq/version.rb +1 -1
- metadata +1 -1
data/lib/eshq/client.rb
CHANGED
@@ -21,7 +21,8 @@ module ESHQ
|
|
21
21
|
request.set_form_data(params.merge(credentials))
|
22
22
|
|
23
23
|
http = Net::HTTP.new(url.host, url.port)
|
24
|
-
http.use_ssl = true if url.
|
24
|
+
http.use_ssl = true if url.is_a?(URI::HTTPS)
|
25
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
25
26
|
|
26
27
|
response = http.request(request)
|
27
28
|
if response.code == "200"
|
data/lib/eshq/version.rb
CHANGED