summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-10-18 10:10:30 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-10-24 16:19:11 +0100
commite4af5c50a80f7d769ca474874a84b1f481dbb8b4 (patch)
treefb24fba48b7a64a01a45bcb3b1a6c0be2565742f
parent3f14712f48f6cf11af44aa7ad56caeec651d5779 (diff)
downloadgitlab-shell-add-http-gateway-time-out-handling.tar.gz
Changes the HTTP error code from Gateway timeout to Service Unavailableadd-http-gateway-time-out-handling
-rw-r--r--lib/gitlab_net.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb
index 4193fed..ac98e9f 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::HTTPGatewayTimeOut
+ Net::HTTPNotFound, Net::HTTPServiceUnavailable
if resp.content_type == CONTENT_TYPE_JSON
return GitAccessStatus.create_from_json(resp.body, resp.code)
end