mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +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.
|
||||
func (w *responseWriter) Flush() {
|
||||
if flusher, ok := w.Flusher(); ok {
|
||||
// Flow: WriteHeader -> Flush -> Write -> Write -> Write....
|
||||
w.tryWriteHeader()
|
||||
|
||||
flusher.Flush()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user