mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
maxapi: remove extra user agent header
This commit is contained in:
parent
16e5e08d58
commit
cbd0180939
|
@ -322,13 +322,12 @@ func signPayload(payload string, secret string) string {
|
|||
}
|
||||
|
||||
func (c *RestClient) Do(req *http.Request) (resp *http.Response, err error) {
|
||||
req.Header.Set("User-Agent", UserAgent)
|
||||
return c.client.Do(req)
|
||||
}
|
||||
|
||||
// sendRequest sends the request to the API server and handle the response
|
||||
func (c *RestClient) sendRequest(req *http.Request) (*util.Response, error) {
|
||||
resp, err := c.Do(req)
|
||||
resp, err := c.client.Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user