mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-10 12:30:25 +08:00
${requestMethod}变量增加默认值GET
This commit is contained in:
@@ -825,6 +825,9 @@ func (this *HTTPRequest) Format(source string) string {
|
||||
case "requestTime":
|
||||
return fmt.Sprintf("%.6f", this.requestCost)
|
||||
case "requestMethod":
|
||||
if len(this.RawReq.Method) == 0 {
|
||||
return http.MethodGet
|
||||
}
|
||||
return this.RawReq.Method
|
||||
case "requestFilename":
|
||||
filename := this.requestFilename()
|
||||
|
||||
Reference in New Issue
Block a user