Skip to content

Commit

Permalink
If no ca_file, set verify_mode to VERIFY_NONE
Browse files Browse the repository at this point in the history
  • Loading branch information
rab committed Dec 1, 2009
1 parent 26b61f7 commit fb47d2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/right_http_connection.rb
Expand Up @@ -306,6 +306,8 @@ def start(request_params)
@http.verify_mode = OpenSSL::SSL::VERIFY_PEER
@http.verify_callback = verifyCallbackProc
@http.ca_file = ca_file
else
@http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
end
# open connection
Expand Down

0 comments on commit fb47d2b

Please sign in to comment.