From: normalperson@... Date: 2014-08-28T03:10:15+00:00 Subject: [ruby-core:64602] [ruby-trunk - Bug #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 Issue #10179 has been updated by Eric Wong. shankga@gmail.com wrote: > Alternatively Net::HTTP could just detect https urls and do this for you. This sounds good. I cannot think of any downside... ---------------------------------------- Bug #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-48522 * Author: George Shank * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- 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/