Skip to content

Commit 5e688c8

Browse files
author
王振威
committed
add faraday timeout support
1 parent d6409bb commit 5e688c8

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)