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:
parent
37cd165838
commit
7a7d345391
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user