mirror of
https://github.com/rclone/rclone.git
synced 2026-10-28 14:28:38 -04:00
The http backend resolves the path after `remote:` against the configured url according to the URL standard. A path beginning with `//` is a network-path reference under that standard, so a path such as `//other.example/dir/` replaced the configured host (and port and userinfo) rather than being treated as a path. The configured headers were then sent to the substituted host on the initial HEAD request and every request after it. Use rest.URLJoinRoot, which refuses any root carrying a scheme, host or userinfo of its own, to join the path onto the configured url.