From 65e785ad632291b7c214fedf48c35d968f658a80 Mon Sep 17 00:00:00 2001 From: "leitao.zhang" Date: Wed, 24 Feb 2021 18:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=82=E6=95=B0=E6=8B=BC?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handler/proxyhandler.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/handler/proxyhandler.go b/src/handler/proxyhandler.go index e690659..b27e12f 100644 --- a/src/handler/proxyhandler.go +++ b/src/handler/proxyhandler.go @@ -176,8 +176,10 @@ func Proxy(c *gin.Context) { oldQ.Add(k, vv) } } - } else { + } else if len(v) == 1 { oldQ.Set(k, v[0]) + } else { + oldQ.Del(k) } } reqURL.RawQuery = oldQ.Encode() -- 2.26.0