Permalink
Browse files

fixed https issue with OpenSSL::SSL::VERIFY_NONE

  • Loading branch information...
1 parent b90062c commit 9c656a609987c68e33ca1be3d77780a11b8fc61b @xianhuazhou committed Dec 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/http_request.rb
View
@@ -386,7 +386,10 @@ def send_request_and_get_response
end
# ssl support
- http.use_ssl = true if @uri.scheme =~ /^https$/i
+ if @uri.scheme =~ /^https$/i
+ http.use_ssl = true
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
+ end
# sending request and get response
send_request http

0 comments on commit 9c656a6

Please sign in to comment.