From 9efca4778bb4a3e581ff6c79648b679bf309d66c Mon Sep 17 00:00:00 2001 From: Andriy Yanko Date: Thu, 8 Oct 2015 23:08:40 +0300 Subject: [PATCH] [em-http] uri request host instead of connection host should be taken for SSL validations. --- lib/faraday/adapter/em_http_ssl_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faraday/adapter/em_http_ssl_patch.rb b/lib/faraday/adapter/em_http_ssl_patch.rb index 8bbfcbce3..a965069c2 100644 --- a/lib/faraday/adapter/em_http_ssl_patch.rb +++ b/lib/faraday/adapter/em_http_ssl_patch.rb @@ -39,7 +39,7 @@ def verify_peer? end def host - parent.connopts.host + parent.uri.host end def certificate_store