feat(botfilter): add statusRecorder.Push
This commit is contained in:
1 parent
6d08794100
commit
03fd43820a
1 file changed
+8
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user