Commit b9589afe authored by Jacob Vosmaer's avatar Jacob Vosmaer

Change "-" to "+"

parent 1fa69c8d
......@@ -34,7 +34,7 @@ func NewResponseWriter(w http.ResponseWriter) *ResponseWriter {
}
func (rw *ResponseWriter) Write(buf []byte) (int, error) {
if !rw.flushed && len(buf) <= rw.cap-rw.bufWritten {
if !rw.flushed && len(buf)+rw.bufWritten <= rw.cap {
n, err := rw.buffer.Write(buf)
rw.bufWritten += n
return n, 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