From aa3063c1ded289150b42875ec78c46acd0db05ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Tue, 13 Jan 2026 11:25:15 +0800 Subject: [PATCH] =?UTF-8?q?mongodb=E5=9F=BA=E7=A1=80=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=A2=9E=E5=8A=A0redis=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/http.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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"))