From f6762d988da15d08bd6f6e29ce1ea284cea76eee Mon Sep 17 00:00:00 2001 From: Jairo Leiva Date: Sat, 31 Jul 2021 16:23:16 -0600 Subject: [PATCH] This fixes #911 getCookies() returned null --- lib/src/base.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/base.dart b/lib/src/base.dart index 2fdc0384..858299f2 100644 --- a/lib/src/base.dart +++ b/lib/src/base.dart @@ -294,7 +294,7 @@ class FlutterWebviewPlugin { final cookies = {}; if (cookiesString?.isNotEmpty == true) { - cookiesString!.split(';').forEach((String cookie) { + cookiesString!.split('; ').forEach((String cookie) { final split = cookie.split('='); cookies[split[0]] = split[1]; });