Commit 65e785ad authored by leitao.zhang's avatar leitao.zhang

优化参数拼接

parent cc4f945d
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment