diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-16 17:39:59 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-24 16:19:11 +0100 |
commit | 3f14712f48f6cf11af44aa7ad56caeec651d5779 (patch) | |
tree | a0577c1d47fde3f63d5d37556d6481840d4c47c7 | |
parent | a55697e9edf97cd04a6d8db665a6aeb8c3784eec (diff) | |
download | gitlab-shell-3f14712f48f6cf11af44aa7ad56caeec651d5779.tar.gz |
Adds handling of Net::HTTPGatewayTimeOut exception to GitlabNet
-rw-r--r-- | lib/gitlab_net.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index b460f46..4193fed 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -36,7 +36,7 @@ class GitlabNet # rubocop:disable Metrics/ClassLength case resp when Net::HTTPSuccess, Net::HTTPMultipleChoices, Net::HTTPUnauthorized, - Net::HTTPNotFound + Net::HTTPNotFound, Net::HTTPGatewayTimeOut if resp.content_type == CONTENT_TYPE_JSON return GitAccessStatus.create_from_json(resp.body, resp.code) end |