static user agent
This commit is contained in:
+6
-7
@@ -4,7 +4,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"crypto/x509"
|
"crypto/x509"
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
@@ -133,12 +132,12 @@ func (c *commonClient) setSystemInfo(info SystemInfo) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *commonClient) setUserAgent() {
|
func (c *commonClient) setUserAgent() {
|
||||||
b, _ := json.Marshal(userAgent{
|
// b, _ := json.Marshal(userAgent{
|
||||||
SystemInfo: c.systemInfo,
|
// SystemInfo: c.systemInfo,
|
||||||
BuildVersion: buildInfo.version,
|
// BuildVersion: buildInfo.version,
|
||||||
BuildCommitSHA: buildInfo.commitSHA,
|
// BuildCommitSHA: buildInfo.commitSHA,
|
||||||
})
|
// })
|
||||||
c.userAgent = string(b)
|
c.userAgent = "dockerscaleset"
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTPOption defines a functional option for configuring the Client.
|
// HTTPOption defines a functional option for configuring the Client.
|
||||||
|
|||||||
Reference in New Issue
Block a user