mirror of
https://github.com/chainreactors/spray.git
synced 2025-05-06 18:51:22 +00:00
修复派生的url可能导致部分插件出错的bug. 现在一旦url出现错误, 判定该请求无效
This commit is contained in:
parent
3698d01903
commit
0167f376db
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user