diff options
Diffstat (limited to 'src/net/http/fs_test.go')
-rw-r--r-- | src/net/http/fs_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/http/fs_test.go b/src/net/http/fs_test.go index 762e88b05f..f3c240fe7e 100644 --- a/src/net/http/fs_test.go +++ b/src/net/http/fs_test.go @@ -837,6 +837,15 @@ func TestServeContent(t *testing.T) { wantStatus: 200, 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": { file: "testdata/style.css", serveETag: `"A"`, |