write http headers in lower case

fixes #317
This commit is contained in:
Lucas Clemente
2016-09-04 11:38:10 +02:00
parent aa16873794
commit e856c08645
2 changed files with 3 additions and 4 deletions

View File

@@ -44,9 +44,7 @@ var _ = Describe("Response Writer", func() {
w.Header().Add("content-length", "42")
w.WriteHeader(http.StatusTeapot)
Expect(headerStream.Bytes()).To(Equal([]byte{
0x0, 0x0, 0x14, 0x1, 0x4, 0x0, 0x0, 0x0, 0x5, 0x48, 0x3, 0x34, 0x31, 0x38,
0x40, 0x8a, 0xbc, 0x7a, 0x92, 0x5a, 0x92, 0xb6, 0x72, 0xd5, 0x32, 0x67,
0x2, 0x34, 0x32,
0x0, 0x0, 0x9, 0x1, 0x4, 0x0, 0x0, 0x0, 0x5, 0x48, 0x3, 0x34, 0x31, 0x38, 0x5c, 0x2, 0x34, 0x32,
}))
})