mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 02:34:55 +01:00
minor
This commit is contained in:
parent
f7757c0793
commit
ce25e698f8
|
@ -373,6 +373,9 @@ func (w *responseWriter) Flusher() (http.Flusher, bool) {
|
||||||
// Flush sends any buffered data to the client.
|
// Flush sends any buffered data to the client.
|
||||||
func (w *responseWriter) Flush() {
|
func (w *responseWriter) Flush() {
|
||||||
if flusher, ok := w.Flusher(); ok {
|
if flusher, ok := w.Flusher(); ok {
|
||||||
|
// Flow: WriteHeader -> Flush -> Write -> Write -> Write....
|
||||||
|
w.tryWriteHeader()
|
||||||
|
|
||||||
flusher.Flush()
|
flusher.Flush()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user