diff options
author | Harald Musum <musum@verizonmedia.com> | 2021-07-15 15:08:47 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2021-07-15 15:08:47 +0200 |
commit | 710364878d258c2db07d4330258f7bb3abc83d1a (patch) | |
tree | 4d0eb9fd0c99c39684845e35e08d8003877b8503 /config-model | |
parent | 22ea3bec3b9dc6e22b4c51414f709e6b84dffd6e (diff) |
Remove last / from url when switching server when doing upload
Avoid empty segment in path, not conformant.
Diffstat (limited to 'config-model')
-rwxr-xr-x | config-model/src/main/perl/vespa-deploy | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config-model/src/main/perl/vespa-deploy b/config-model/src/main/perl/vespa-deploy index d66295d4c36..7d065fa93f4 100755 --- a/config-model/src/main/perl/vespa-deploy +++ b/config-model/src/main/perl/vespa-deploy @@ -411,6 +411,7 @@ sub http_upload { debug("exitcode=$exitcode\n"); debug("output=$output\n"); $configsource_url = shift(@configsources); + $configsource_url =~ s/\/$//; # Remove last / from configsource_url if ($configsource_url) { $configsource_url_used = $configsource_url; $retry = 1; |