Skip to content

Commit 5bd5c5e

Browse files
Gargronhiyuki2578
authored andcommitted
Fix signature verification stoplight triggering on non-timeout errors (mastodon#9617)
1 parent 9a16e23 commit 5bd5c5e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/controllers/concerns/signature_verification.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def signed_request_account
4747
.with_fallback { nil }
4848
.with_threshold(1)
4949
.with_cool_off_time(5.minutes.seconds)
50+
.with_error_handler { |error, handle| error.is_a?(HTTP::Error) ? handle.call(error) : raise(error) }
5051

5152
account = account_stoplight.run
5253

0 commit comments

Comments
 (0)