blackstack-core 1.2.30 → 1.2.32
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 -4
- 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: fca9a409ddf81878f9b34d9abf346b2a289aca42fcf87a3c32d6de4eb41e04fb
|
4
|
+
data.tar.gz: ee034ca3f82310975c66e44c2180f6b7fdeb9c8d3eac31d51915ba6604367dfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df2d7d486e43fe1785b5894530672dddeefc8ba24ae45fa38604e9b3d49f79f8aa63141fccde0cc87d75d11f4d4e2fee929f0471582009eafca67b687b1b31b
|
7
|
+
data.tar.gz: e6d18d38a227b5074ad139f9853af865f6285d2b774226bddf297a85546380102dc5bc4956c662dc2435bb413b3304faef38391f2f00c1e65b3add701df9884f
|
data/lib/functions.rb
CHANGED
@@ -945,7 +945,7 @@ module BlackStack
|
|
945
945
|
|
946
946
|
# Create a basic Faraday connection
|
947
947
|
conn = Faraday.new(
|
948
|
-
url: "#{uri.scheme}://#{uri.host}",
|
948
|
+
url: url, #"#{uri.scheme}://#{uri.host}:#{uri.port}",
|
949
949
|
ssl: { verify: ssl_verify_mode != OpenSSL::SSL::VERIFY_NONE },
|
950
950
|
request: {
|
951
951
|
open_timeout: DEFAULT_OPEN_TIMEOUT,
|
@@ -1018,9 +1018,8 @@ module BlackStack
|
|
1018
1018
|
while (nTries < max_retries && bSuccess == false)
|
1019
1019
|
begin
|
1020
1020
|
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
|
1021
|
+
res = BlackStack::Netting::call_post(url, params, ssl_verify_mode) if method==BlackStack::Netting::CALL_METHOD_POST
|
1022
|
+
res = BlackStack::Netting::call_get(url, params, ssl_verify_mode) if method==BlackStack::Netting::CALL_METHOD_GET
|
1024
1023
|
parsed = JSON.parse(res.body)
|
1025
1024
|
if (parsed['status']==BlackStack::Netting::SUCCESS)
|
1026
1025
|
bSuccess = true
|