Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed https issue with OpenSSL::SSL::VERIFY_NONE

  • Loading branch information...
commit 9c656a609987c68e33ca1be3d77780a11b8fc61b 1 parent b90062c
xianhua zhou authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 lib/http_request.rb
5 lib/http_request.rb
@@ -386,7 +386,10 @@ def send_request_and_get_response
386 386 end
387 387
388 388 # ssl support
389   - http.use_ssl = true if @uri.scheme =~ /^https$/i
  389 + if @uri.scheme =~ /^https$/i
  390 + http.use_ssl = true
  391 + http.verify_mode = OpenSSL::SSL::VERIFY_NONE
  392 + end
390 393
391 394 # sending request and get response
392 395 send_request http

0 comments on commit 9c656a6

Please sign in to comment.
Something went wrong with that request. Please try again.