Commit 8998673c authored by Mikio Hara's avatar Mikio Hara

net/http: fix build

empty is already not a nil.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5376099
parent b91d8225
...@@ -70,7 +70,6 @@ var reqTests = []reqTest{ ...@@ -70,7 +70,6 @@ var reqTests = []reqTest{
Close: false, Close: false,
ContentLength: 7, ContentLength: 7,
Host: "www.techcrunch.com", Host: "www.techcrunch.com",
Form: url.Values{},
}, },
"abcdef\n", "abcdef\n",
...@@ -94,10 +93,10 @@ var reqTests = []reqTest{ ...@@ -94,10 +93,10 @@ var reqTests = []reqTest{
Proto: "HTTP/1.1", Proto: "HTTP/1.1",
ProtoMajor: 1, ProtoMajor: 1,
ProtoMinor: 1, ProtoMinor: 1,
Header: Header{},
Close: false, Close: false,
ContentLength: 0, ContentLength: 0,
Host: "foo.com", Host: "foo.com",
Form: url.Values{},
}, },
noBody, noBody,
...@@ -131,7 +130,6 @@ var reqTests = []reqTest{ ...@@ -131,7 +130,6 @@ var reqTests = []reqTest{
Close: false, Close: false,
ContentLength: 0, ContentLength: 0,
Host: "test", Host: "test",
Form: url.Values{},
}, },
noBody, noBody,
...@@ -180,9 +178,9 @@ var reqTests = []reqTest{ ...@@ -180,9 +178,9 @@ var reqTests = []reqTest{
Proto: "HTTP/1.1", Proto: "HTTP/1.1",
ProtoMajor: 1, ProtoMajor: 1,
ProtoMinor: 1, ProtoMinor: 1,
Header: Header{},
ContentLength: -1, ContentLength: -1,
Host: "foo.com", Host: "foo.com",
Form: url.Values{},
}, },
"foobar", "foobar",
......
...@@ -65,6 +65,7 @@ var respTests = []respTest{ ...@@ -65,6 +65,7 @@ var respTests = []respTest{
Proto: "HTTP/1.1", Proto: "HTTP/1.1",
ProtoMajor: 1, ProtoMajor: 1,
ProtoMinor: 1, ProtoMinor: 1,
Header: Header{},
Request: dummyReq("GET"), Request: dummyReq("GET"),
Close: true, Close: true,
ContentLength: -1, ContentLength: -1,
...@@ -85,6 +86,7 @@ var respTests = []respTest{ ...@@ -85,6 +86,7 @@ var respTests = []respTest{
Proto: "HTTP/1.1", Proto: "HTTP/1.1",
ProtoMajor: 1, ProtoMajor: 1,
ProtoMinor: 1, ProtoMinor: 1,
Header: Header{},
Request: dummyReq("GET"), Request: dummyReq("GET"),
Close: false, Close: false,
ContentLength: 0, ContentLength: 0,
......
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