blackstack-core 1.2.30 → 1.2.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/functions.rb +3 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9422bf619ee5c62514cede0f715c896f9721bd679c106b328dce187a5a404a6
|
4
|
+
data.tar.gz: 46f704d4f1ce7e8c6d5664ef4c3de74bc5a1dd6179e42f8247956410445fccb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cffd17c2b4a54c112fc6cacd6fec8a3f48b9286ea83e401662770a6580f4c40c030a229be9b3a066b965fb5a853cb79eb85d7ae15d358e8ca5908d0fe830eab
|
7
|
+
data.tar.gz: b71b7512bd2e941742359dd7135772956ed8956eafb98dc1c459760e0055a8009faabb14d3bd9e300047b401a747f053794cce0deaf6ddfd8cb4d3e7b2ef9ef9
|
data/lib/functions.rb
CHANGED
@@ -941,11 +941,9 @@ module BlackStack
|
|
941
941
|
|
942
942
|
while attempts < DEFAULT_RETRY_ATTEMPTS
|
943
943
|
begin
|
944
|
-
uri = URI.parse(url)
|
945
|
-
|
946
944
|
# Create a basic Faraday connection
|
947
945
|
conn = Faraday.new(
|
948
|
-
url: "#{uri.scheme}://#{uri.host}",
|
946
|
+
url: url, #"#{uri.scheme}://#{uri.host}:#{uri.port}",
|
949
947
|
ssl: { verify: ssl_verify_mode != OpenSSL::SSL::VERIFY_NONE },
|
950
948
|
request: {
|
951
949
|
open_timeout: DEFAULT_OPEN_TIMEOUT,
|
@@ -1018,9 +1016,8 @@ module BlackStack
|
|
1018
1016
|
while (nTries < max_retries && bSuccess == false)
|
1019
1017
|
begin
|
1020
1018
|
nTries = nTries + 1
|
1021
|
-
|
1022
|
-
res = BlackStack::Netting::
|
1023
|
-
res = BlackStack::Netting::call_get(uri, params, ssl_verify_mode) if method==BlackStack::Netting::CALL_METHOD_GET
|
1019
|
+
res = BlackStack::Netting::call_post(url, params, ssl_verify_mode) if method==BlackStack::Netting::CALL_METHOD_POST
|
1020
|
+
res = BlackStack::Netting::call_get(url, params, ssl_verify_mode) if method==BlackStack::Netting::CALL_METHOD_GET
|
1024
1021
|
parsed = JSON.parse(res.body)
|
1025
1022
|
if (parsed['status']==BlackStack::Netting::SUCCESS)
|
1026
1023
|
bSuccess = true
|