Commit b7013252 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'add-http-gateway-time-out-handling' into 'master'

Adds handling of Net::HTTPGatewayTimeOut exception to GitlabNet

See merge request gitlab-org/gitlab-shell!251
parents a55697e9 e4af5c50
......@@ -36,7 +36,7 @@ class GitlabNet # rubocop:disable Metrics/ClassLength
case resp
when Net::HTTPSuccess, Net::HTTPMultipleChoices, Net::HTTPUnauthorized,
Net::HTTPNotFound
Net::HTTPNotFound, Net::HTTPServiceUnavailable
if resp.content_type == CONTENT_TYPE_JSON
return GitAccessStatus.create_from_json(resp.body, resp.code)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment