mirror of
https://github.com/kataras/iris.git
synced 2025-12-29 07:47:22 +00:00
20 days of unstoppable work. Waiting fo go 1.8, I didn't finish yet, some touches remains.
Former-commit-id: ed84f99c89f43fe5e980a8e6d0ee22c186f0e1b9
This commit is contained in:
@@ -148,14 +148,13 @@ func (w *ResponseRecorder) flushResponse() {
|
||||
w.responseWriter.flushResponse()
|
||||
|
||||
if len(w.chunks) > 0 {
|
||||
// ignore error
|
||||
w.responseWriter.Write(w.chunks)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Flush sends any buffered data to the client.
|
||||
func (w *ResponseRecorder) Flush() {
|
||||
w.flushResponse()
|
||||
w.responseWriter.Flush()
|
||||
w.ResetBody()
|
||||
}
|
||||
@@ -250,6 +249,7 @@ func (w *ResponseRecorder) writeTo(res ResponseWriter) {
|
||||
|
||||
// append the body
|
||||
if len(w.chunks) > 0 {
|
||||
// ignore error
|
||||
to.Write(w.chunks)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user