diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-29 16:49:50 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-29 07:49:50 -0700 |
| commit | a814cfc3e1a12d4cad452b190228117ecb74d08a (patch) | |
| tree | 53cb7ea8ae30732cf82d21b1033f27d4eaee7adf /http/cookie_test.ts | |
| parent | ce101a0f8632f6b5390af247f3df2002e86becdf (diff) | |
http/cookie: fixing equal character split (denoland/deno_std#368)
Original: https://github.com/denoland/deno_std/commit/8503efc8f729cf152a2b03471b3a9d6d93c31197
Diffstat (limited to 'http/cookie_test.ts')
| -rw-r--r-- | http/cookie_test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/http/cookie_test.ts b/http/cookie_test.ts index ae99b2707..4b4e2759d 100644 --- a/http/cookie_test.ts +++ b/http/cookie_test.ts @@ -21,6 +21,14 @@ test({ req.headers = new Headers(); req.headers.set("Cookie", "igot=99; problems=but..."); assertEquals(getCookies(req), { igot: "99", problems: "but..." }); + + req.headers = new Headers(); + req.headers.set("Cookie", "PREF=al=en-GB&f1=123; wide=1; SID=123"); + assertEquals(getCookies(req), { + PREF: "al=en-GB&f1=123", + wide: "1", + SID: "123" + }); } }); |
