mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-09 12:00:26 +08:00
GET302/POST307兼容safari浏览器
This commit is contained in:
@@ -74,9 +74,5 @@ func (this *Get302Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, requ
|
||||
flusher.Flush()
|
||||
}
|
||||
|
||||
// 延迟等待响应发送完毕
|
||||
time.Sleep(1 * time.Second)
|
||||
request.WAFClose()
|
||||
|
||||
return false, false
|
||||
}
|
||||
|
||||
@@ -81,6 +81,7 @@ func (this *Post307Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, req
|
||||
var req = request.WAFRaw()
|
||||
if req.ContentLength > 0 && req.Body != nil {
|
||||
_, _ = io.Copy(io.Discard, req.Body)
|
||||
_ = req.Body.Close()
|
||||
}
|
||||
|
||||
// 设置Cookie
|
||||
@@ -98,9 +99,5 @@ func (this *Post307Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, req
|
||||
flusher.Flush()
|
||||
}
|
||||
|
||||
// 延迟等待响应发送完毕
|
||||
time.Sleep(1 * time.Second)
|
||||
request.WAFClose()
|
||||
|
||||
return false, false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user