1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Absolute references to Net.

This commit is contained in:
Sai Perchard 2011-04-11 23:45:58 +08:00 committed by Erik Michaels-Ober
parent b7eafa2e9e
commit 45c248aaf4

View file

@ -68,7 +68,7 @@ module OmniAuth
# retrieves the `<cas:serviceResponse>` XML from the CAS server # retrieves the `<cas:serviceResponse>` XML from the CAS server
def get_service_response_body def get_service_response_body
result = '' result = ''
http = Net::HTTP.new(@uri.host, @uri.port) http = ::Net::HTTP.new(@uri.host, @uri.port)
http.use_ssl = @uri.port == 443 || @uri.instance_of?(URI::HTTPS) http.use_ssl = @uri.port == 443 || @uri.instance_of?(URI::HTTPS)
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl? && @configuration.disable_ssl_verification? http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl? && @configuration.disable_ssl_verification?
http.start do |c| http.start do |c|