diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-03-28 20:27:16 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-04-02 18:20:01 +0300 |
commit | 2e3bc6a9415688d769134ee669fd457d63f497f8 (patch) | |
tree | 2f92ef930bbf16b90e01920cc22d78003e39f7cf /lib/gitlab/http.rb | |
parent | 6b5ec93ad9e3a55ae0cba4fb677c2a6cff04cd70 (diff) |
Raise more descriptive errors when URLs are blocked
Diffstat (limited to 'lib/gitlab/http.rb')
-rw-r--r-- | lib/gitlab/http.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/http.rb b/lib/gitlab/http.rb index 96558872a37..9aca3b0fb26 100644 --- a/lib/gitlab/http.rb +++ b/lib/gitlab/http.rb @@ -4,6 +4,8 @@ # calling internal IP or services. module Gitlab class HTTP + BlockedUrlError = Class.new(StandardError) + include HTTParty # rubocop:disable Gitlab/HTTParty connection_adapter ProxyHTTPConnectionAdapter |