Skip to content

Commit b59e772

Browse files
author
Tom Milewski
committed
Merge pull request #38 from jack230230/master
Add Faraday timeout support.
2 parents 8cdcc08 + 5e688c8 commit b59e772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/omniauth/strategies/oauth2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def callback_phase
8080
fail!(:invalid_credentials, e)
8181
rescue ::MultiJson::DecodeError => e
8282
fail!(:invalid_response, e)
83-
rescue ::Timeout::Error, ::Errno::ETIMEDOUT => e
83+
rescue ::Timeout::Error, ::Errno::ETIMEDOUT, Faraday::Error::TimeoutError => e
8484
fail!(:timeout, e)
8585
rescue ::SocketError => e
8686
fail!(:failed_to_connect, e)

0 commit comments

Comments
 (0)