diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-27 12:08:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-27 12:08:32 +0300 |
commit | c8e28a0bb8dd45d91cb72ff2c930bc4a562f1fc7 (patch) | |
tree | a6b5d07b456c9494eb68ed210af74b58dc699a26 /app/models/hooks/web_hook_log.rb | |
parent | eace733dca6e5c87315b42f42eb4d8f05934d6de (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/hooks/web_hook_log.rb')
-rw-r--r-- | app/models/hooks/web_hook_log.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/hooks/web_hook_log.rb b/app/models/hooks/web_hook_log.rb index df0e7b30f84..ed2e4408ce3 100644 --- a/app/models/hooks/web_hook_log.rb +++ b/app/models/hooks/web_hook_log.rb @@ -23,6 +23,10 @@ class WebHookLog < ApplicationRecord response_status =~ /^2/ end + def internal_error? + response_status == WebHookService::InternalErrorResponse::ERROR_MESSAGE + end + private def obfuscate_basic_auth |