lib/soapy_cake/client.rb in soapy_cake-1.6.5 vs lib/soapy_cake/client.rb in soapy_cake-1.6.6
- old
+ new
@@ -17,10 +17,10 @@
def run(request)
request.api_key = api_key
request.time_offset = time_offset
url = "https://#{domain}#{request.path}"
- body = HTTParty.post(url, headers: headers, body: request.xml).body
+ body = HTTParty.post(url, headers: headers, body: request.xml, timeout: NET_TIMEOUT).body
response = Response.new(body, %w(addedit track).include?(request.service))
response.time_offset = time_offset
response.collection
end