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:
korsvanloon 2019-04-04 08:44:55 +02:00 committed by GitHub
parent 1654036ae1
commit 861f8426f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 &&