Commit 9ce6b5c2 authored by Joe Kyo's avatar Joe Kyo Committed by Brad Fitzpatrick

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

Change-Id: I5a38200b9e050b484ec39f47c637e651e237390d
Reviewed-on: https://go-review.googlesource.com/82536Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 99f4cf97
...@@ -27,7 +27,6 @@ type dumpTest struct { ...@@ -27,7 +27,6 @@ type dumpTest struct {
} }
var dumpTests = []dumpTest{ var dumpTests = []dumpTest{
// HTTP/1.1 => chunked coding; body; empty trailer // HTTP/1.1 => chunked coding; body; empty trailer
{ {
Req: http.Request{ Req: http.Request{
...@@ -214,7 +213,6 @@ func TestDumpRequest(t *testing.T) { ...@@ -214,7 +213,6 @@ func TestDumpRequest(t *testing.T) {
t.Fatalf("Test %d: unsupported Body of %T", i, tt.Body) t.Fatalf("Test %d: unsupported Body of %T", i, tt.Body)
} }
} }
setBody()
if tt.Req.Header == nil { if tt.Req.Header == nil {
tt.Req.Header = make(http.Header) tt.Req.Header = make(http.Header)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment