mirror of
https://github.com/golang/go
synced 2024-11-20 02:14:46 -07:00
net/http: fix build
empty is already not a nil. R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/5376099
This commit is contained in:
parent
b91d82258f
commit
8998673cc6
@ -70,7 +70,6 @@ var reqTests = []reqTest{
|
||||
Close: false,
|
||||
ContentLength: 7,
|
||||
Host: "www.techcrunch.com",
|
||||
Form: url.Values{},
|
||||
},
|
||||
|
||||
"abcdef\n",
|
||||
@ -94,10 +93,10 @@ var reqTests = []reqTest{
|
||||
Proto: "HTTP/1.1",
|
||||
ProtoMajor: 1,
|
||||
ProtoMinor: 1,
|
||||
Header: Header{},
|
||||
Close: false,
|
||||
ContentLength: 0,
|
||||
Host: "foo.com",
|
||||
Form: url.Values{},
|
||||
},
|
||||
|
||||
noBody,
|
||||
@ -131,7 +130,6 @@ var reqTests = []reqTest{
|
||||
Close: false,
|
||||
ContentLength: 0,
|
||||
Host: "test",
|
||||
Form: url.Values{},
|
||||
},
|
||||
|
||||
noBody,
|
||||
@ -180,9 +178,9 @@ var reqTests = []reqTest{
|
||||
Proto: "HTTP/1.1",
|
||||
ProtoMajor: 1,
|
||||
ProtoMinor: 1,
|
||||
Header: Header{},
|
||||
ContentLength: -1,
|
||||
Host: "foo.com",
|
||||
Form: url.Values{},
|
||||
},
|
||||
|
||||
"foobar",
|
||||
|
@ -65,6 +65,7 @@ var respTests = []respTest{
|
||||
Proto: "HTTP/1.1",
|
||||
ProtoMajor: 1,
|
||||
ProtoMinor: 1,
|
||||
Header: Header{},
|
||||
Request: dummyReq("GET"),
|
||||
Close: true,
|
||||
ContentLength: -1,
|
||||
@ -85,6 +86,7 @@ var respTests = []respTest{
|
||||
Proto: "HTTP/1.1",
|
||||
ProtoMajor: 1,
|
||||
ProtoMinor: 1,
|
||||
Header: Header{},
|
||||
Request: dummyReq("GET"),
|
||||
Close: false,
|
||||
ContentLength: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user