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