diff options
author | 木杉 <zhmushan@qq.com> | 2020-04-10 22:12:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 10:12:42 -0400 |
commit | 195ad4c6264c3563044480685931999ffa9d3d5c (patch) | |
tree | c95503b6845acfcbb76de6901f3dd7b4cad81a1c /std/http/cookie_test.ts | |
parent | 85c61bff1cee2344646b533b96a4b5c1a67a5850 (diff) |
fix(std/http): verify cookie name & update SameSite type (#4685)
Diffstat (limited to 'std/http/cookie_test.ts')
-rw-r--r-- | std/http/cookie_test.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/std/http/cookie_test.ts b/std/http/cookie_test.ts index 52bd8c375..2c8543053 100644 --- a/std/http/cookie_test.ts +++ b/std/http/cookie_test.ts @@ -214,5 +214,9 @@ test({ res.headers.get("Set-Cookie"), "cookie-1=value-1; Secure, cookie-2=value-2; Max-Age=3600" ); + + res.headers = new Headers(); + setCookie(res, { name: "", value: "" }); + assertEquals(res.headers.get("Set-Cookie"), null); }, }); |