修复派生的url可能导致部分插件出错的bug. 现在一旦url出现错误, 判定该请求无效

This commit is contained in:
M09Ic 2023-04-25 17:28:08 +08:00
parent 3698d01903
commit 0167f376db

View File

@ -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