Open stoivo opened 1 year ago
Hi, love httprb.
I would like to suggest to add some validation of the arguments to timeout. I can see that there are already some but we managed to pass {timeout: 5} as the argument
{timeout: 5}
This is the related code. https://github.com/httprb/http/blob/462d711040735be3661068e9e52eb14a4269f1f4/lib/http/chainable.rb#L93-L112
I can open a PR of you would want that?
Yes, open a PR with what you're proposing
Hi, love httprb.
I would like to suggest to add some validation of the arguments to timeout. I can see that there are already some but we managed to pass
{timeout: 5}
as the argumentThis is the related code. https://github.com/httprb/http/blob/462d711040735be3661068e9e52eb14a4269f1f4/lib/http/chainable.rb#L93-L112
I can open a PR of you would want that?