diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-18 10:10:30 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-24 16:19:11 +0100 |
commit | e4af5c50a80f7d769ca474874a84b1f481dbb8b4 (patch) | |
tree | fb24fba48b7a64a01a45bcb3b1a6c0be2565742f | |
parent | 3f14712f48f6cf11af44aa7ad56caeec651d5779 (diff) | |
download | gitlab-shell-e4af5c50a80f7d769ca474874a84b1f481dbb8b4.tar.gz |
Changes the HTTP error code from Gateway timeout to Service Unavailableadd-http-gateway-time-out-handling
-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 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 |