Skip to content

Commit

Permalink
Update lib/faraday/adapter/net_http.rb
Browse files Browse the repository at this point in the history
Co-Authored-By: Olle Jonsson <[email protected]>
  • Loading branch information
technoweenie and olleolleolle authored Oct 15, 2019
1 parent 75b9804 commit 296f336
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/faraday/adapter/net_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def configure_request(http, req)
if (sec = request_timeout(:read, req))
http.read_timeout = sec
end

if (sec = http.respond_to?(:write_timeout=) &&
request_timeout(:write, req))
http.write_timeout = sec
Expand Down

0 comments on commit 296f336

Please sign in to comment.