diff --git a/cmd/notary/tuf.go b/cmd/notary/tuf.go index b6add17276..1b624d8510 100644 --- a/cmd/notary/tuf.go +++ b/cmd/notary/tuf.go @@ -884,7 +884,7 @@ func tokenAuth(trustServerURL string, baseTransport *http.Transport, gun data.GU if endpoint.Scheme == "" { return nil, fmt.Errorf("Trust server url has to be in the form of http(s)://URL:PORT. Got: %s", trustServerURL) } - subPath, err := url.Parse(path.Join(endpoint.Path, "/v2/")) + subPath, err := url.Parse(path.Join(endpoint.Path, "/v2") + "/") if err != nil { return nil, fmt.Errorf("Failed to parse v2 subpath. This error should not have been reached. Please report it as an issue at https://github.com/docker/notary/issues: %s", err.Error()) }