let url_str = format!("{}{}", config.address, path);
In my case config.address is 172.17.0.1:8500, and path is foo/bar, which makes 172.17.0.1:8500foo.bar, and result in Failed to parse URL.
I am not sure we should expect our users to have a slash suffix. Our code should be more tolerant in that respect.
Relevant code:
In my case
config.address
is172.17.0.1:8500
, andpath
isfoo/bar
, which makes172.17.0.1:8500foo.bar
, and result inFailed to parse URL
. I am not sure we should expect our users to have a slash suffix. Our code should be more tolerant in that respect.