From f7ed942779e3b6aa4b04cfc0a38ca10a8c20bb76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 31 Mar 2022 15:17:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=B4=E6=97=B6=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E9=A1=B5=E9=9D=A2=E5=86=85=E5=AE=B9=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B0HTML=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_shutdown.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/internal/nodes/http_request_shutdown.go b/internal/nodes/http_request_shutdown.go index c767138..6ad1820 100644 --- a/internal/nodes/http_request_shutdown.go +++ b/internal/nodes/http_request_shutdown.go @@ -17,12 +17,13 @@ func (this *HTTPRequest) doShutdown() { return } - if urlPrefixRegexp.MatchString(shutdown.URL) { // URL - this.doURL(http.MethodGet, shutdown.URL, "", shutdown.Status, true) - return - } - if len(shutdown.BodyType) == 0 || shutdown.BodyType == shared.BodyTypeURL { + // URL + if urlPrefixRegexp.MatchString(shutdown.URL) { + this.doURL(http.MethodGet, shutdown.URL, "", shutdown.Status, true) + return + } + // URL为空,则显示文本 if len(shutdown.URL) == 0 { // 自定义响应Headers