workspace-net 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/workspace-net.rb +1 -1
- 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: '09841e07cf4d97a7992f1ecea1790a14339e826e'
|
4
|
+
data.tar.gz: e2a1f495e850ea3574afa60954ee8de84a352e71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f213147ce83898be89a4034ef93ceddf0e3c8e3bb94ea4c186e0c326d45995ddc921ed6c83181a683175e535980ed3c5f731d7370a15a4790bc3853fb57a7f67
|
7
|
+
data.tar.gz: da710e6b0f4a857dc63ca77d463a477b1e79662bfc78e7b48e30201cb3037d37a00f1b8b6ceee1294a41deb4843bd2465dc33ce56195cbf83263d370d0490cda
|
data/workspace-net.rb
CHANGED
@@ -11,7 +11,7 @@ module Workspace
|
|
11
11
|
def queue_download(url, followlocation: true, verify: false, &block)
|
12
12
|
uri = URI(url)
|
13
13
|
uri.scheme ||= "http"
|
14
|
-
request = Typhoeus::Request.new(uri.to_s, followlocation: followlocation, verify: verify)
|
14
|
+
request = Typhoeus::Request.new(uri.to_s, followlocation: followlocation, ssl_verifypeer: verify, ssl_verifyhost: (verify ? 2 : 0))
|
15
15
|
request.on_complete do |response|
|
16
16
|
if response.success?
|
17
17
|
write(response.body)
|