mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
maxapi: set user agent
This commit is contained in:
parent
ff78637c8f
commit
cddb7874ce
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user