lib/falcon/command/virtual.rb in falcon-0.47.10 vs lib/falcon/command/virtual.rb in falcon-0.48.0
- old
+ new
@@ -67,14 +67,15 @@
def secure_endpoint(**options)
Async::HTTP::Endpoint.parse(@options[:bind_secure], **options)
end
# An endpoint suitable for connecting to the specified hostname.
- def host_endpoint(hostname, **options)
+ def host_endpoint(hostname, path: "/", **options)
endpoint = secure_endpoint(**options)
url = URI.parse(@options[:bind_secure])
url.hostname = hostname
+ url.path = path
return Async::HTTP::Endpoint.new(url, hostname: endpoint.hostname)
end
end
end