mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
http: use Header type consistently
R=bradfitzgo, dsymonds CC=golang-dev https://golang.org/cl/4244053
This commit is contained in:
parent
7fb65a936b
commit
0db312b6a8
6 changed files with 16 additions and 17 deletions
|
|
@ -22,7 +22,7 @@ var respWriteTests = []respWriteTest{
|
|||
ProtoMajor: 1,
|
||||
ProtoMinor: 0,
|
||||
RequestMethod: "GET",
|
||||
Header: map[string][]string{},
|
||||
Header: Header{},
|
||||
Body: nopCloser{bytes.NewBufferString("abcdef")},
|
||||
ContentLength: 6,
|
||||
},
|
||||
|
|
@ -38,7 +38,7 @@ var respWriteTests = []respWriteTest{
|
|||
ProtoMajor: 1,
|
||||
ProtoMinor: 0,
|
||||
RequestMethod: "GET",
|
||||
Header: map[string][]string{},
|
||||
Header: Header{},
|
||||
Body: nopCloser{bytes.NewBufferString("abcdef")},
|
||||
ContentLength: -1,
|
||||
},
|
||||
|
|
@ -53,7 +53,7 @@ var respWriteTests = []respWriteTest{
|
|||
ProtoMajor: 1,
|
||||
ProtoMinor: 1,
|
||||
RequestMethod: "GET",
|
||||
Header: map[string][]string{},
|
||||
Header: Header{},
|
||||
Body: nopCloser{bytes.NewBufferString("abcdef")},
|
||||
ContentLength: 6,
|
||||
TransferEncoding: []string{"chunked"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue