mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-04 22:55:48 +08:00
优化代码
This commit is contained in:
@@ -88,3 +88,15 @@ func (this *HTTPRateWriter) Hijack() (conn net.Conn, buf *bufio.ReadWriter, err
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Flush Flush
|
||||
func (this *HTTPRateWriter) Flush() {
|
||||
if this.parentWriter == nil {
|
||||
return
|
||||
}
|
||||
flusher, ok := this.parentWriter.(http.Flusher)
|
||||
if ok {
|
||||
flusher.Flush()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user