reso_api 1.8.11 → 1.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/reso_api/app/models/reso/api/client.rb +14 -2
- data/lib/reso_api/version.rb +1 -1
- 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: e3cb2e251bb0012fb425337a94a97c8015cc478687ac72f8d7915598c75eed53
|
|
4
|
+
data.tar.gz: 8670d59a706aa895795e8ff03d180dd2ddec49c5d882b8ed46eafa7c35f7af5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24bf2687c88bd99184ee1e341a3378c19e91385ad025e8dd9a46d35d3e6d8593bf32125a4d9ab06be2a789bd34c894aeeafbab524547b05156c2d8f1267b24dd
|
|
7
|
+
data.tar.gz: e3ad4b195f9b690d2b40faf18c4fdefbf747eb9ed4f9fc8cf083a152d3a345512a21212a4eb67c8750e08ddbef1364f7df435c6dcf64506b7bf70fe1c21384c0
|
|
@@ -242,9 +242,21 @@ module RESO
|
|
|
242
242
|
begin
|
|
243
243
|
req = Net::HTTP::Get.new(uri.request_uri)
|
|
244
244
|
req['Authorization'] = "Bearer #{auth_token}"
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
|
|
246
|
+
# Configure HTTP object before starting connection
|
|
247
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
|
248
|
+
http.use_ssl = (uri.scheme == 'https')
|
|
249
|
+
|
|
250
|
+
if http.use_ssl?
|
|
251
|
+
# Configure certificate store to avoid CRL checking issues with OpenSSL 3.5+
|
|
252
|
+
# This maintains certificate chain verification while preventing CRL-related failures
|
|
253
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
|
254
|
+
store = OpenSSL::X509::Store.new
|
|
255
|
+
store.set_default_paths
|
|
256
|
+
http.cert_store = store
|
|
247
257
|
end
|
|
258
|
+
|
|
259
|
+
res = http.request(req)
|
|
248
260
|
response = JSON(res.body) rescue res.body
|
|
249
261
|
if response.is_a?(String) && response.include?('Bad Gateway')
|
|
250
262
|
puts "Error: Bad Gateway." if debug
|
data/lib/reso_api/version.rb
CHANGED