static user agent

This commit is contained in:
Francesco Renzi
2026-02-02 11:00:34 +01:00
parent aeda0a5af4
commit 9cd2ceb86b
+6 -7
View File
@@ -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.