Commit 56d92dc1 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Forget the buffer early

parent b9589afe
......@@ -71,5 +71,6 @@ func (rw *ResponseWriter) Flush() error {
}
_, err := io.Copy(rw.writer, rw.buffer)
rw.buffer = nil // "Release" the buffer for GC
return err
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment