Skip to content

Commit c1b85ce

Browse files
committed
šŸ› Compatibility with Rack::Timeout
- ruby-openid#5
1 parent 92a9607 commit c1b85ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ā€Žlib/rack/openid.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def begin_authentication(env, qs)
134134

135135
url = open_id_redirect_url(req, oidreq, params)
136136
return redirect_to(url)
137-
rescue ::OpenID::OpenIDError, Timeout::Error => e
137+
rescue ::OpenID::OpenIDError, ::Timeout::Error
138138
env[RESPONSE] = MissingResponse.new
139139
return @app.call(env)
140140
end
@@ -302,7 +302,7 @@ def default_store
302302

303303
def timeout_protection_from_identity_server
304304
yield
305-
rescue Timeout::Error
305+
rescue ::Timeout::Error
306306
TimeoutResponse.new
307307
end
308308
end

0 commit comments

Comments
Ā (0)