From 861f8426f889e4ab26e3153c1302ea6c57d5d5dd Mon Sep 17 00:00:00 2001 From: korsvanloon Date: Thu, 4 Apr 2019 08:44:55 +0200 Subject: [PATCH] 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 --- lib/src/plugin.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/plugin.dart b/lib/src/plugin.dart index 49381dea..67dc5249 100644 --- a/lib/src/plugin.dart +++ b/lib/src/plugin.dart @@ -369,7 +369,7 @@ class AngelAuth { if (allowCookie == true) { res.cookies.removeWhere((cookie) => cookie.name == "token"); - _addProtectedCookie(res, 'token', ''); + _addProtectedCookie(res, 'token', '""'); } if (options != null &&