Commit 3f14712f authored by Tiago Botelho's avatar Tiago Botelho

Adds handling of Net::HTTPGatewayTimeOut exception to GitlabNet

parent a55697e9
...@@ -36,7 +36,7 @@ class GitlabNet # rubocop:disable Metrics/ClassLength ...@@ -36,7 +36,7 @@ class GitlabNet # rubocop:disable Metrics/ClassLength
case resp case resp
when Net::HTTPSuccess, Net::HTTPMultipleChoices, Net::HTTPUnauthorized, when Net::HTTPSuccess, Net::HTTPMultipleChoices, Net::HTTPUnauthorized,
Net::HTTPNotFound Net::HTTPNotFound, Net::HTTPGatewayTimeOut
if resp.content_type == CONTENT_TYPE_JSON if resp.content_type == CONTENT_TYPE_JSON
return GitAccessStatus.create_from_json(resp.body, resp.code) return GitAccessStatus.create_from_json(resp.body, resp.code)
end 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