Test malformed header

This commit is contained in:
Marcus Weiner 2020-06-24 17:23:52 +02:00
parent d96bddeabb
commit 5b88aada21
1 changed files with 9 additions and 0 deletions

View File

@ -849,6 +849,15 @@ func TestServeContent(t *testing.T) {
wantStatus: 200, wantStatus: 200,
wantContentType: "text/css; charset=utf-8", wantContentType: "text/css; charset=utf-8",
}, },
"if_none_match_malformed": {
file: "testdata/style.css",
serveETag: `"foo"`,
reqHeader: map[string]string{
"If-None-Match": `,`,
},
wantStatus: 200,
wantContentType: "text/css; charset=utf-8",
},
"range_good": { "range_good": {
file: "testdata/style.css", file: "testdata/style.css",
serveETag: `"A"`, serveETag: `"A"`,