Skip to content

Commit 5b88aad

Browse files
committed
Test malformed header
1 parent d96bdde commit 5b88aad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/net/http/fs_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,15 @@ func TestServeContent(t *testing.T) {
849849
wantStatus: 200,
850850
wantContentType: "text/css; charset=utf-8",
851851
},
852+
"if_none_match_malformed": {
853+
file: "testdata/style.css",
854+
serveETag: `"foo"`,
855+
reqHeader: map[string]string{
856+
"If-None-Match": `,`,
857+
},
858+
wantStatus: 200,
859+
wantContentType: "text/css; charset=utf-8",
860+
},
852861
"range_good": {
853862
file: "testdata/style.css",
854863
serveETag: `"A"`,

0 commit comments

Comments
 (0)