diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2013-08-08 14:02:54 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2013-08-08 14:02:54 -0700 |
| commit | de04bf24e5a9d4a52f0024dd684de21ec4a36340 (patch) | |
| tree | d15ddc0242e7bb820b3504783fe3baf14e2dc984 /src/cmd/api | |
| parent | 390656affd8993ce6332dca3fa86d57659622fdf (diff) | |
| download | go-de04bf24e5a9d4a52f0024dd684de21ec4a36340.tar.xz | |
net/http: fix early side effects in the ResponseWriter's ReadFrom
The ResponseWriter's ReadFrom method was causing side effects on
the output before any data was read.
Now, bail out early and do a normal copy (which does a read
before writing) when our input and output are known to not to
be the pair of types we need for sendfile.
Fixes #5660
R=golang-dev, rsc, nightlyone
CC=golang-dev
https://golang.org/cl/12632043
Diffstat (limited to 'src/cmd/api')
0 files changed, 0 insertions, 0 deletions
