Skip to content

Commit

Permalink
[em-http] uri request host instead of connection host should be taken…
Browse files Browse the repository at this point in the history
… for SSL validations.
  • Loading branch information
ayanko committed Oct 8, 2015
1 parent f97f187 commit 9efca47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faraday/adapter/em_http_ssl_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def verify_peer?
end

def host
parent.connopts.host
parent.uri.host
end

def certificate_store
Expand Down

0 comments on commit 9efca47

Please sign in to comment.