mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-07 18:50:27 +08:00
增加${isArgs}请求变量
This commit is contained in:
@@ -634,6 +634,11 @@ func (this *HTTPRequest) Format(source string) string {
|
|||||||
return this.requestString()
|
return this.requestString()
|
||||||
case "cookies":
|
case "cookies":
|
||||||
return this.requestCookiesString()
|
return this.requestCookiesString()
|
||||||
|
case "isArgs":
|
||||||
|
if strings.Contains(this.uri, "?") {
|
||||||
|
return "?"
|
||||||
|
}
|
||||||
|
return ""
|
||||||
case "args", "queryString":
|
case "args", "queryString":
|
||||||
return this.requestQueryString()
|
return this.requestQueryString()
|
||||||
case "headers":
|
case "headers":
|
||||||
|
|||||||
Reference in New Issue
Block a user