From d31dac75be18039b5e3ed10bbaca853c0f78972a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Mon, 13 Nov 2023 10:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BE=8B=E5=A4=96URL=E5=92=8C=E9=99=90?= =?UTF-8?q?=E5=88=B6URL=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_page.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/nodes/http_request_page.go b/internal/nodes/http_request_page.go index 5d08179..d3b53be 100644 --- a/internal/nodes/http_request_page.go +++ b/internal/nodes/http_request_page.go @@ -45,7 +45,11 @@ func (this *HTTPRequest) doPage(status int) (shouldStop bool) { } func (this *HTTPRequest) doPageLookup(pages []*serverconfigs.HTTPPageConfig, status int) (shouldStop bool) { + var url = this.URL() for _, page := range pages { + if !page.MatchURL(url) { + continue + } if page.Match(status) { if len(page.BodyType) == 0 || page.BodyType == serverconfigs.HTTPPageBodyTypeURL { if urlSchemeRegexp.MatchString(page.URL) {