From faf8116d4fac4b366110824c627eda6311935d7a Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 6 Dec 2021 21:47:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0${isArgs}=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/nodes/http_request.go b/internal/nodes/http_request.go index 1d08405..30ffeee 100644 --- a/internal/nodes/http_request.go +++ b/internal/nodes/http_request.go @@ -634,6 +634,11 @@ func (this *HTTPRequest) Format(source string) string { return this.requestString() case "cookies": return this.requestCookiesString() + case "isArgs": + if strings.Contains(this.uri, "?") { + return "?" + } + return "" case "args", "queryString": return this.requestQueryString() case "headers":