From 0167f376dba75b20b5f71b70ca08f5439ef7a9a9 Mon Sep 17 00:00:00 2001 From: M09Ic Date: Tue, 25 Apr 2023 17:28:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B4=BE=E7=94=9F=E7=9A=84ur?= =?UTF-8?q?l=E5=8F=AF=E8=83=BD=E5=AF=BC=E8=87=B4=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=87=BA=E9=94=99=E7=9A=84bug.=20=E7=8E=B0?= =?UTF-8?q?=E5=9C=A8=E4=B8=80=E6=97=A6url=E5=87=BA=E7=8E=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF,=20=E5=88=A4=E5=AE=9A=E8=AF=A5=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/baseline.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/baseline.go b/pkg/baseline.go index 93a2138..446c7da 100644 --- a/pkg/baseline.go +++ b/pkg/baseline.go @@ -56,9 +56,11 @@ func NewBaseline(u, host string, resp *ihttp.Response) *Baseline { if err == nil { bl.Path = uu.Path bl.Url = uu - if bl.Url.Host != host { + if uu.Host != host { bl.Host = host } + } else { + bl.IsValid = false } bl.Unique = UniqueHash(bl) return bl