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