lib/eps-rapid/client.rb in eps-rapid-1.3.0 vs lib/eps-rapid/client.rb in eps-rapid-1.4.0
- old
+ new
@@ -84,10 +84,10 @@
req['Content-Type'] = 'application/json'
req['Customer-Ip'] = customer_ip if customer_ip != ''
req['Test'] = test_header if test_header != ''
logger.debug("Request: #{uri} headers=(#{req.to_hash}): body=(#{req.body})")
- response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
+ response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true, **RequestConfig.current) { |http| http.request(req) }
logger.debug("Response: #{response.code.to_i} headers=(#{response.to_hash}): body=(#{response.body})")
case response.code.to_i
when HttpStatusCodes::HTTP_OK_CODE, HttpStatusCodes::HTTP_CREATED_CODE
JSON.parse(response.body)