-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/proxy: clean versions returned with spaces
jFrog Artifactory's go module proxy incorrectly responds to /@v/list with versions that all have a space suffix ("v1.2.3 " instead of "v1.2.3"). Currently, this causes an issue when we take that version and we try to add things like ".info", resulting in URLs like GET "foo.com/v1.2.3 .info" instead of "foo.com/v1.2.3.info". This change cleans up versions with such a suffix to fix this issue, and adds a test (and the ability to test) for this situation. Fixes golang/go#71141 Change-Id: I12d188f736258b5e263e007c6f757b15fd47545d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/640655 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]> kokoro-CI: kokoro <[email protected]>
- Loading branch information
Showing
4 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters