a9bcddee4c
Gitlab::HTTP now resolves the hostname only once, verifies the IP is not blocked, and then uses the same IP to perform the actual request, while passing the original hostname in the `Host` header and SSL SNI field.
15 lines
357 B
Ruby
15 lines
357 B
Ruby
# frozen_string_literal: true
|
|
# This monkey patches the HTTParty used in https://github.com/hipchat/hipchat-rb.
|
|
module HipChat
|
|
class Client
|
|
connection_adapter ::Gitlab::HTTPConnectionAdapter
|
|
end
|
|
|
|
class Room
|
|
connection_adapter ::Gitlab::HTTPConnectionAdapter
|
|
end
|
|
|
|
class User
|
|
connection_adapter ::Gitlab::HTTPConnectionAdapter
|
|
end
|
|
end
|