diff options
author | Joe Kyo <xunianzu@gmail.com> | 2017-12-07 16:34:14 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-12-07 17:38:51 +0000 |
commit | 9ce6b5c2ed5d3d5251b9a6a0c548d5fb2c8567e8 (patch) | |
tree | 56d71d6b0ba18c3c04253ccb8b793748521b5a48 | |
parent | 99f4cf9714825d024bc56cd92920dc9fc2c6d9c2 (diff) | |
download | go1.10beta1.tar.gz go1.10beta1.zip |
net/http/httputil: remove redundant call of setBody in testgo1.10beta1
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>
-rw-r--r-- | src/net/http/httputil/dump_test.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/net/http/httputil/dump_test.go b/src/net/http/httputil/dump_test.go index f881020fef..5703a7fb86 100644 --- a/src/net/http/httputil/dump_test.go +++ b/src/net/http/httputil/dump_test.go @@ -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) } |