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 <[email protected]> Change-Id: I03e433429db80ccadf44983b4938fbdf14b08673 Dispatch-Trailer: {"type":"trybot","CL":1178179,"patchset":2,"ref":"refs/changes/79/1178179/2","targetBranch":"master"}
- Loading branch information