mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
minor
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user