diff --git a/CHANGELOG.md b/CHANGELOG.md index e3b2005..598dec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +### Fixed + +- A backwards incompatible change was accidently introduced in `v0.6.5`, `/v1` + would always be appended to the url, instead, `/v1` will only be appended if + the provided url does not end with `/v1`. + ## [0.6.5] - 2017-04-27 ### Fixed diff --git a/cmd/test.go b/cmd/test.go index ea2878f..8ebe108 100644 --- a/cmd/test.go +++ b/cmd/test.go @@ -133,7 +133,9 @@ func testCmd(ctx *cli.Context) error { } // Always append the '/v1' to the path - purl.Path = path.Join(purl.Path, "/v1") + if !strings.HasSuffix(purl.Path, "/v1") { + purl.Path = path.Join(purl.Path, "/v1") + } k, err := getKeypair() if err != nil {