lib/httpx/extensions.rb in httpx-0.6.2 vs lib/httpx/extensions.rb in httpx-0.6.3

- old
+ new

@@ -65,13 +65,14 @@ "#{scheme}://#{authority}" end def altsvc_match?(uri) uri = URI.parse(uri) - self == uri || begin + + origin == uri.origin || begin case scheme - when 'h2' - uri.scheme == "https" && + when "h2" + (uri.scheme == "https" || uri.scheme == "h2") && host == uri.host && (port || default_port) == (uri.port || uri.default_port) else false end \ No newline at end of file