Fixes runtime error in case Cookie has no domain on the Dart side. Also added tests on native (android and ios) side as errors occur there.
IMPORTANT NOTE: Domain attribute is not required according to RFC, but it is important to remember that empty domain causes undefined behavior. So it is highly reccommended to specify it this this way:
final cookie = Cookie('cookieName', 'cookieValue')..domain = 'youtube.com';
Related issue #34
Fixes runtime error in case Cookie has no domain on the Dart side. Also added tests on native (android and ios) side as errors occur there.
IMPORTANT NOTE: Domain attribute is not required according to RFC, but it is important to remember that empty domain causes undefined behavior. So it is highly reccommended to specify it this this way:
Probably this note should be added to readme.