mirror of https://github.com/golang/go.git
Test malformed header
This commit is contained in:
parent
d96bddeabb
commit
5b88aada21
|
|
@ -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"`,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue