-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/cueversion: convert spaces to underscore in Go version
A Component/Version pair inside a User-Agent header should not contain spaces, but `runtime.Version` can return a version containing spaces when using a development version (for example "devel go1.23-2ab9218c86 2024-03-11 22:10:38 +0000"). So convert spaces to underscores before putting that string in the User-Agent header. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I03e433429db80ccadf44983b4938fbdf14b08673 Dispatch-Trailer: {"type":"trybot","CL":1178179,"patchset":1,"ref":"refs/changes/79/1178179/1","targetBranch":"master"}
- Loading branch information
Showing
2 changed files
with
8 additions
and
2 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