From 068c20e1b916b07cdfb5f2249e5b2c5c8851a651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 5 Nov 2021 14:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=AE=8A=E9=A1=B5=E9=9D=A2=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E8=AF=BB=E5=8F=96URL=E6=97=B6=EF=BC=8C=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E5=BD=93=E5=89=8D=E7=9A=84=E7=8A=B6=E6=80=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_page.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/nodes/http_request_page.go b/internal/nodes/http_request_page.go index 3c2590f..2a6d986 100644 --- a/internal/nodes/http_request_page.go +++ b/internal/nodes/http_request_page.go @@ -23,7 +23,11 @@ func (this *HTTPRequest) doPage(status int) (shouldStop bool) { if page.Match(status) { if len(page.BodyType) == 0 || page.BodyType == shared.BodyTypeURL { if urlPrefixRegexp.MatchString(page.URL) { - this.doURL(http.MethodGet, page.URL, "", page.NewStatus, true) + var newStatus = page.NewStatus + if newStatus <= 0 { + newStatus = status + } + this.doURL(http.MethodGet, page.URL, "", newStatus, true) return true } else { file := Tea.Root + Tea.DS + page.URL