Skip to content

Commit 9ce6b5c

Browse files
joekyobradfitz
authored andcommitted
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 <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 99f4cf9 commit 9ce6b5c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/net/http/httputil/dump_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ type dumpTest struct {
2727
}
2828

2929
var dumpTests = []dumpTest{
30-
3130
// HTTP/1.1 => chunked coding; body; empty trailer
3231
{
3332
Req: http.Request{
@@ -214,7 +213,6 @@ func TestDumpRequest(t *testing.T) {
214213
t.Fatalf("Test %d: unsupported Body of %T", i, tt.Body)
215214
}
216215
}
217-
setBody()
218216
if tt.Req.Header == nil {
219217
tt.Req.Header = make(http.Header)
220218
}

0 commit comments

Comments
 (0)