From c1af8b36a487b4ffa536868e0344cdad91d69d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 10 Jun 2021 11:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=B8=A4=E4=B8=AATODO?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/nodes/http_request.go b/internal/nodes/http_request.go index 13a0596..f5ff76d 100644 --- a/internal/nodes/http_request.go +++ b/internal/nodes/http_request.go @@ -488,7 +488,7 @@ func (this *HTTPRequest) Format(source string) string { return this.rawURI case "requestPath": return this.requestPath() - case "requestPathExtension": // TODO 需要添加到文档中 + case "requestPathExtension": return filepath.Ext(this.requestPath()) case "requestLength": return strconv.FormatInt(this.requestLength(), 10) @@ -583,7 +583,6 @@ func (this *HTTPRequest) Format(source string) string { } // response. - // TODO 需要在文档中添加说明 if prefix == "response" { switch suffix { case "contentType":