static user agent
This commit is contained in:
+6
-7
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user