feat(botfilter): add statusRecorder.Push

This commit is contained in:
hoelee committed 2026-06-10 15:40:00 +08:00
1 parent 9b61040eee
commit df84c1db8c
1 file changed
+8
+8
View File
@@ -146,3 +146,11 @@ func (r *statusRecorder) Hijack() (net.Conn, *bufio.ReadWriter, error) {
return hijacker.Hijack()
}
func (r *statusRecorder) Push(target string, options *http.PushOptions) error {
pusher, ok := r.ResponseWriter.(http.Pusher)
if !ok {
return http.ErrNotSupported
}
return pusher.Push(target, options)
}