From 9600d6fe3e10a4827c44c6a6a76db24dc9c0cbc7 Mon Sep 17 00:00:00 2001 From: M09Ic Date: Tue, 10 Jan 2023 01:08:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhost=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E4=B8=8D=E9=80=82=E5=BD=93=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/baseline.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/baseline.go b/pkg/baseline.go index 35083bd..a2459d2 100644 --- a/pkg/baseline.go +++ b/pkg/baseline.go @@ -25,7 +25,7 @@ func NewBaseline(u, host string, resp *ihttp.Response) *Baseline { bl.Url = uu } bl.Dir = bl.IsDir() - if resp.ClientType == ihttp.STANDARD { + if bl.Url.Host != host { bl.Host = host } header := resp.Header() @@ -67,7 +67,7 @@ func NewInvalidBaseline(u, host string, resp *ihttp.Response, reason string) *Ba } bl.Dir = bl.IsDir() - if resp.ClientType == ihttp.STANDARD { + if bl.Url.Host != host { bl.Host = host }