debian-mirror-gitlab/lib/gitlab/http.rb

14 lines
447 B
Ruby
Raw Normal View History

2018-03-26 14:24:53 +05:30
# This class is used as a proxy for all outbounding http connection
# coming from callbacks, services and hooks. The direct use of the HTTParty
# is discouraged because it can lead to several security problems, like SSRF
# calling internal IP or services.
module Gitlab
class HTTP
2018-05-09 12:01:36 +05:30
BlockedUrlError = Class.new(StandardError)
2018-03-26 14:24:53 +05:30
include HTTParty # rubocop:disable Gitlab/HTTParty
connection_adapter ProxyHTTPConnectionAdapter
end
end