1
0
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:
Gerasimos (Makis) Maropoulos
2017-02-14 05:54:11 +02:00
parent 2b2a205e63
commit 244a59e055
108 changed files with 9016 additions and 7596 deletions

View File

@@ -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)
}