mirror of
https://github.com/chainreactors/spray.git
synced 2026-10-29 03:50:47 +00:00
修复host输出不适当的bug
This commit is contained in:
1 parent
4d338f18c2
commit
9600d6fe3e
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user