net/http/httputil: remove redundant call of setBody in test

Change-Id: I5a38200b9e050b484ec39f47c637e651e237390d
Reviewed-on: https://go-review.googlesource.com/82536
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Joe Kyo 2017-12-07 16:34:14 +00:00 committed by Brad Fitzpatrick
parent 99f4cf9714
commit 9ce6b5c2ed
1 changed files with 0 additions and 2 deletions

View File

@ -27,7 +27,6 @@ type dumpTest struct {
}
var dumpTests = []dumpTest{
// HTTP/1.1 => chunked coding; body; empty trailer
{
Req: http.Request{
@ -214,7 +213,6 @@ func TestDumpRequest(t *testing.T) {
t.Fatalf("Test %d: unsupported Body of %T", i, tt.Body)
}
}
setBody()
if tt.Req.Header == nil {
tt.Req.Header = make(http.Header)
}