Commit 7a7d3453 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net/http: don't ignore Request.Write's Flush error

Pointed out by nekotaroh in issue 2645

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5539045
parent 37cd1658
...@@ -368,8 +368,8 @@ func (req *Request) write(w io.Writer, usingProxy bool, extraHeaders Header) err ...@@ -368,8 +368,8 @@ func (req *Request) write(w io.Writer, usingProxy bool, extraHeaders Header) err
if err != nil { if err != nil {
return err return err
} }
bw.Flush()
return nil return bw.Flush()
} }
// Convert decimal at s[i:len(s)] to integer, // Convert decimal at s[i:len(s)] to integer,
......
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