aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/http/readrequest_test.go
diff options
context:
space:
mode:
authorPetar Maymounkov <petarm@gmail.com>2011-02-23 00:39:25 -0500
committerRuss Cox <rsc@golang.org>2011-02-23 00:39:25 -0500
commitb8fa61885ad076081a42231ae50fe374dceff500 (patch)
tree12562bd386c93f8bf22c71f3927a67d2449320d3 /src/pkg/http/readrequest_test.go
parent07cc8b9ad21a164a64139de169e8eceb1f90c61a (diff)
downloadgo-b8fa61885ad076081a42231ae50fe374dceff500.tar.xz
http: introduce Header type, implement with net/textproto
textproto: introduce Header type websocket: use new interface to access Header R=rsc, mattn CC=golang-dev https://golang.org/cl/4185053
Diffstat (limited to 'src/pkg/http/readrequest_test.go')
-rw-r--r--src/pkg/http/readrequest_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/pkg/http/readrequest_test.go b/src/pkg/http/readrequest_test.go
index 5e1cbcbcbd..6ee07bc914 100644
--- a/src/pkg/http/readrequest_test.go
+++ b/src/pkg/http/readrequest_test.go
@@ -50,14 +50,14 @@ var reqTests = []reqTest{
Proto: "HTTP/1.1",
ProtoMajor: 1,
ProtoMinor: 1,
- Header: map[string]string{
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
- "Accept-Language": "en-us,en;q=0.5",
- "Accept-Encoding": "gzip,deflate",
- "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7",
- "Keep-Alive": "300",
- "Proxy-Connection": "keep-alive",
- "Content-Length": "7",
+ Header: Header{
+ "Accept": {"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
+ "Accept-Language": {"en-us,en;q=0.5"},
+ "Accept-Encoding": {"gzip,deflate"},
+ "Accept-Charset": {"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
+ "Keep-Alive": {"300"},
+ "Proxy-Connection": {"keep-alive"},
+ "Content-Length": {"7"},
},
Close: false,
ContentLength: 7,
@@ -93,7 +93,7 @@ var reqTests = []reqTest{
Proto: "HTTP/1.1",
ProtoMajor: 1,
ProtoMinor: 1,
- Header: map[string]string{},
+ Header: map[string][]string{},
Close: false,
ContentLength: -1,
Host: "test",