diff --git a/src/handler/proxyhandler.go b/src/handler/proxyhandler.go index e690659de4b3afbe1a4c93edb063383d58a5b3d4..b27e12f243327a95f5347846c886615d7d065784 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()