Skip to content

Commit

Permalink
fix call Curb client "SSL peer certificate or SSH remote key was not …
Browse files Browse the repository at this point in the history
…OK" bug , same for Savon (taf2/curb#212)
  • Loading branch information
PSP dev committed Jun 18, 2015
1 parent ffa4430 commit aab43f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/httpi/adapter/curb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def setup_ssl_auth
ssl = @request.auth.ssl

if @request.auth.ssl?
unless ssl.verify_mode == :none
if ssl.verify_mode == :none
@client.ssl_verify_host = 0
else
@client.cacert = ssl.ca_cert_file if ssl.ca_cert_file
@client.certtype = ssl.cert_type.to_s.upcase
end
Expand Down

0 comments on commit aab43f5

Please sign in to comment.