0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-13 20:09:36 +03:00
RPRX
2021-03-12 11:38:36 +00:00
committed by GitHub
parent fcc9d97074
commit 819717d278

View File

@ -51,7 +51,7 @@ func (fw flushWriter) Write(p []byte) (n int, err error) {
} }
n, err = fw.w.Write(p) 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() f.Flush()
} }
return return