From 9cd2ceb86babac4c611570d6d80427bf9f534307 Mon Sep 17 00:00:00 2001 From: Francesco Renzi Date: Mon, 2 Feb 2026 11:00:34 +0100 Subject: [PATCH] static user agent --- common_client.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/common_client.go b/common_client.go index f78cbcd..6ae6efe 100644 --- a/common_client.go +++ b/common_client.go @@ -4,7 +4,6 @@ import ( "bytes" "crypto/tls" "crypto/x509" - "encoding/json" "fmt" "io" "log/slog" @@ -133,12 +132,12 @@ func (c *commonClient) setSystemInfo(info SystemInfo) { } func (c *commonClient) setUserAgent() { - b, _ := json.Marshal(userAgent{ - SystemInfo: c.systemInfo, - BuildVersion: buildInfo.version, - BuildCommitSHA: buildInfo.commitSHA, - }) - c.userAgent = string(b) + // b, _ := json.Marshal(userAgent{ + // SystemInfo: c.systemInfo, + // BuildVersion: buildInfo.version, + // BuildCommitSHA: buildInfo.commitSHA, + // }) + c.userAgent = "dockerscaleset" } // HTTPOption defines a functional option for configuring the Client.