diff options
Diffstat (limited to 'libgo/go/http/header_test.go')
-rw-r--r-- | libgo/go/http/header_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgo/go/http/header_test.go b/libgo/go/http/header_test.go index 7e24cb0..ccdee8a 100644 --- a/libgo/go/http/header_test.go +++ b/libgo/go/http/header_test.go @@ -57,6 +57,16 @@ var headerWriteTests = []struct { map[string]bool{"Content-Length": true, "Expires": true, "Content-Encoding": true}, "", }, + { + Header{ + "Nil": nil, + "Empty": {}, + "Blank": {""}, + "Double-Blank": {"", ""}, + }, + nil, + "Blank: \r\nDouble-Blank: \r\nDouble-Blank: \r\n", + }, } func TestHeaderWrite(t *testing.T) { |