maxapi: set user agent

This commit is contained in:
c9s 2023-07-26 14:34:50 +08:00
parent ff78637c8f
commit cddb7874ce
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -271,6 +271,8 @@ func (c *RestClient) newAuthenticatedRequest(ctx context.Context, m string, refU
req.Header.Set("USER-AGENT", UserAgent)
}
req.Header.Set("USER-AGENT", "Go-http-client/1.1,bbgo/"+version.Version)
if false {
out, _ := httputil.DumpRequestOut(req, true)
fmt.Println(string(out))