From cbd0180939c4eca56a43f6745eeb1a25bb0cf9a3 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 9 Jun 2021 02:21:32 +0800 Subject: [PATCH] maxapi: remove extra user agent header --- pkg/exchange/max/maxapi/restapi.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/exchange/max/maxapi/restapi.go b/pkg/exchange/max/maxapi/restapi.go index 7bb0299c8..a7d7c0ccd 100644 --- a/pkg/exchange/max/maxapi/restapi.go +++ b/pkg/exchange/max/maxapi/restapi.go @@ -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 }