lib/httpx/connection.rb in httpx-0.6.6 vs lib/httpx/connection.rb in httpx-0.6.7

- old
+ new

@@ -99,10 +99,12 @@ end # coalescable connections need to be mergeable! # but internally, #mergeable? is called before #coalescable? def coalescable?(connection) - if @io.protocol == "h2" && @origin.scheme == "https" + if @io.protocol == "h2" && + @origin.scheme == "https" && + connection.origin.scheme == "https" @io.verify_hostname(connection.origin.host) else @origin == connection.origin end end