mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-13 02:23:51 +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) {
|
func (c *RestClient) Do(req *http.Request) (resp *http.Response, err error) {
|
||||||
req.Header.Set("User-Agent", UserAgent)
|
|
||||||
return c.client.Do(req)
|
return c.client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
// sendRequest sends the request to the API server and handle the response
|
// sendRequest sends the request to the API server and handle the response
|
||||||
func (c *RestClient) sendRequest(req *http.Request) (*util.Response, error) {
|
func (c *RestClient) sendRequest(req *http.Request) (*util.Response, error) {
|
||||||
resp, err := c.Do(req)
|
resp, err := c.client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user