mirror of https://github.com/golang/go.git
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:
parent
99f4cf9714
commit
9ce6b5c2ed
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue