]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: ensure DumpRequestOut dumps all of Body
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 30 Sep 2014 19:09:34 +0000 (12:09 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 30 Sep 2014 19:09:34 +0000 (12:09 -0700)
commit4a532c664df5d0c6edd4955a80006490827179d7
treea2f0a8adc532a538cdc52c9713480c00ec483987
parent1b89cd16589c223f1d5fb73b88a2612800d68e67
net/http/httputil: ensure DumpRequestOut dumps all of Body

Bodies larger than 8KB (the default bufio reader size) weren't
being dumped.  Force a read of the body so they're teed into
the response buffer.

Thanks to Steven Hartland for identifying the problem.

Fixes #8089

LGTM=r
R=golang-codereviews, r
CC=adg, golang-codereviews
https://golang.org/cl/144650044
src/net/http/httputil/dump.go
src/net/http/httputil/dump_test.go