mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
minor: formatting.
This commit is contained in:
parent
b3aa2d9181
commit
5f8f11c0ee
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue