diff --git a/http/http.go b/http/http.go index a63eb8a..52497b4 100644 --- a/http/http.go +++ b/http/http.go @@ -59,10 +59,8 @@ func doRequest(ctx context.Context, method string, url string, headers map[strin return } client := Httpclient - if len(data) > 0 { - client = Httpclient.Clone() - } if len(headers) > 0 { + client = Httpclient.Clone() client.SetHeaderMap(headers) } else { client.SetHeader("Authorization", g.RequestFromCtx(ctx).GetHeader("Authorization"))