@@ -13,7 +13,7 @@ import (
1313
1414func TestHeaderValue (t * testing.T ) {
1515 const keyName = "test-key"
16- const expectedKeyName = keyName
16+ const expectedKeyName = "Test-Key"
1717
1818 cases := map [string ]struct {
1919 header http.Header
@@ -142,29 +142,29 @@ func TestHeaders(t *testing.T) {
142142 }{
143143 "set" : {
144144 headers : http.Header {
145- "x-amzn-meta-foo " : {"bazValue" },
145+ "X-Amzn-Meta-Foo " : {"bazValue" },
146146 },
147147 values : map [string ]string {
148148 "foo" : "fooValue" ,
149149 " bar " : "barValue" ,
150150 },
151151 expected : http.Header {
152- "x-amzn-meta-foo " : {"fooValue" },
153- "x-amzn-meta-bar " : {"barValue" },
152+ "X-Amzn-Meta-Foo " : {"fooValue" },
153+ "X-Amzn-Meta-Bar " : {"barValue" },
154154 },
155155 },
156156 "add" : {
157157 headers : http.Header {
158- "x-amzn-meta-foo " : {"bazValue" },
158+ "X-Amzn-Meta-Foo " : {"bazValue" },
159159 },
160160 values : map [string ]string {
161161 "foo" : "fooValue" ,
162162 " bar " : "barValue" ,
163163 },
164164 append : true ,
165165 expected : http.Header {
166- "x-amzn-meta-foo " : {"bazValue" , "fooValue" },
167- "x-amzn-meta-bar " : {"barValue" },
166+ "X-Amzn-Meta-Foo " : {"bazValue" , "fooValue" },
167+ "X-Amzn-Meta-Bar " : {"barValue" },
168168 },
169169 },
170170 }
0 commit comments