change empty cookie string to have double quotes
Setting a cookie with an empty string `''` causes a crash. See: https://github.com/dart-lang/sdk/issues/35189
This commit is contained in:
parent
1654036ae1
commit
861f8426f8
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ class AngelAuth<User> {
|
|||
|
||||
if (allowCookie == true) {
|
||||
res.cookies.removeWhere((cookie) => cookie.name == "token");
|
||||
_addProtectedCookie(res, 'token', '');
|
||||
_addProtectedCookie(res, 'token', '""');
|
||||
}
|
||||
|
||||
if (options != null &&
|
||||
|
|
Loading…
Reference in a new issue