1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:34:40 -07:00

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
This commit is contained in:
Brad Fitzpatrick 2012-01-12 13:15:40 -08:00
parent 37cd165838
commit 7a7d345391

View File

@ -368,8 +368,8 @@ func (req *Request) write(w io.Writer, usingProxy bool, extraHeaders Header) err
if err != nil {
return err
}
bw.Flush()
return nil
return bw.Flush()
}
// Convert decimal at s[i:len(s)] to integer,