From df84c1db8cbc157391d44309a99d624dfaa5935a Mon Sep 17 00:00:00 2001 From: hoelee Date: Wed, 10 Jun 2026 15:40:00 +0800 Subject: [PATCH] feat(botfilter): add statusRecorder.Push --- botfilter.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/botfilter.go b/botfilter.go index 2a257261..579ca508 100644 --- a/botfilter.go +++ b/botfilter.go @@ -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) +} +