16392: Add trailing slash to URLs like https://example in configs.
[arvados.git] / services / keepproxy / keepproxy.go
index 188173274f2e40b86f14f6ed00d5b6541c4129e6..0191e5ba45391e4058b24e014ae4d2feab16d0e2 100644 (file)
@@ -119,7 +119,7 @@ func run(logger log.FieldLogger, cluster *arvados.Cluster) error {
        // If a config file is available, use the keepstores defined there
        // instead of the legacy autodiscover mechanism via the API server
        for k := range cluster.Services.Keepstore.InternalURLs {
-               arv.KeepServiceURIs = append(arv.KeepServiceURIs, k.String())
+               arv.KeepServiceURIs = append(arv.KeepServiceURIs, strings.TrimRight(k.String(), "/"))
        }
 
        if cluster.SystemLogs.LogLevel == "debug" {