lib/intercom/request.rb in intercom-3.5.24 vs lib/intercom/request.rb in intercom-3.5.25
- old
+ new
@@ -108,10 +108,10 @@
def set_rate_limit_details(response)
rate_limit_details = {}
rate_limit_details[:limit] = response['X-RateLimit-Limit'].to_i if response['X-RateLimit-Limit']
rate_limit_details[:remaining] = response['X-RateLimit-Remaining'].to_i if response['X-RateLimit-Remaining']
- rate_limit_details[:reset_at] = Time.parse(response['X-RateLimit-Reset']) if response['X-RateLimit-Reset']
+ rate_limit_details[:reset_at] = Time.at(response['X-RateLimit-Reset'].to_i) if response['X-RateLimit-Reset']
@rate_limit_details = rate_limit_details
end
def decode(content_encoding, body)
return body if (!body) || body.empty? || content_encoding != 'gzip'