On Oct 10, 2013, at 6:14 AM, Zhi-Qiang Lei <zhiqiang.lei / gmail.com> =
wrote:

> equire 'net/http'
>=20
> uri =3D URI('https://github.com')
>=20
> Net::HTTP.start(uri.host, uri.port,
>                 :use_ssl =3D> uri.scheme =3D=3D 'https') do |http|
>   request =3D Net::HTTP::Get.new uri
>=20
>   response =3D http.request request # Net::HTTPResponse object
> end
>=20
> puts response

Looks like it may be a precedence problem. Try changing to this:

> Net::HTTP.start(uri.host, uri.port,
                :use_ssl =3D> (uri.scheme =3D=3D 'https')) do |http|

It's binding the :use_ssl =3D> uri.scheme first, then doing the compare=85=