mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 19:33:32 +02:00
This commit is contained in:
parent
fcc9d97074
commit
819717d278
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ func (fw flushWriter) Write(p []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
n, err = fw.w.Write(p)
|
||||
if f, ok := fw.w.(http.Flusher); ok {
|
||||
if f, ok := fw.w.(http.Flusher); ok && err == nil {
|
||||
f.Flush()
|
||||
}
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue