[#70843] Re: [ruby-cvs:58952] hsbt:r51801 (trunk): * lib/rubygems: Update to RubyGems HEAD(fe61e4c112). — Eric Wong <normalperson@...>
hsbt@ruby-lang.org wrote:
3 messages
2015/09/17
[ruby-core:70780] [Ruby trunk - Feature #10179] Net::HTTP::Get.new("https://google.com").basic_auth(user_name, password) should throw exception stating the need to set use_ssl to true
From:
zzak@...
Date:
2015-09-13 03:25:45 UTC
List:
ruby-core #70780
Issue #10179 has been updated by Zachary Scott.
Tracker changed from Bug to Feature
----------------------------------------
Feature #10179: Net::HTTP::Get.new("https://google.com").basic_auth(user_name, password) should throw exception stating the need to set use_ssl to true
https://bugs.ruby-lang.org/issues/10179#change-54161
* Author: George Shank
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
Alternatively Net::HTTP could just detect https urls and do this for you.
I suggest:
raise Exception("Accessing https without ssl\n url:#{URL}\n Please use http.use_ssl = true")
--
https://bugs.ruby-lang.org/