about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-12-26 19:15:43 +0100
committerGitHub <noreply@github.com>2018-12-26 19:15:43 +0100
commit17cd91c7776281bee68d57d898d598d576c70a0e (patch)
treea781a35b8a1ddf548ab5386bd256aa06f6e5cf9a
parent8be08434671079edaabac2f2e7efcb720a4bd8be (diff)
Fix signature verification stoplight triggering on non-timeout errors (#9617)
-rw-r--r--app/controllers/concerns/signature_verification.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/concerns/signature_verification.rb b/app/controllers/concerns/signature_verification.rb
index 7e491641b..887096e8b 100644
--- a/app/controllers/concerns/signature_verification.rb
+++ b/app/controllers/concerns/signature_verification.rb
@@ -47,6 +47,7 @@ module SignatureVerification
       .with_fallback { nil }
       .with_threshold(1)
       .with_cool_off_time(5.minutes.seconds)
+      .with_error_handler { |error, handle| error.is_a?(HTTP::Error) ? handle.call(error) : raise(error) }
 
     account = account_stoplight.run