1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

minor: formatting.

This commit is contained in:
John Nunemaker 2014-03-13 10:01:05 -04:00
parent b3aa2d9181
commit 5f8f11c0ee

View file

@ -183,8 +183,8 @@ module HTTParty
# open_timeout 10
# end
def open_timeout(t)
raise ArgumentError, 'open_timeout must be an integer or float' unless t && (t.is_a?(Integer) || t.is_a?(Float))
default_options[:open_timeout] = t
raise ArgumentError, 'open_timeout must be an integer or float' unless t && (t.is_a?(Integer) || t.is_a?(Float))
default_options[:open_timeout] = t
end
# Allows setting a default read_timeout for all HTTP calls in seconds