diff -r 0d55fb0217f1 Lib/http/cookiejar.py --- a/Lib/http/cookiejar.py Tue Feb 26 16:29:46 2013 +0000 +++ b/Lib/http/cookiejar.py Tue Feb 26 18:27:57 2013 +0100 @@ -1915,7 +1915,7 @@ if expires is None: discard = True domain = h("domain") - domain_specified = domain.startswith(".") + domain_specified = bool(domain) c = Cookie(h("version"), name, value, h("port"), h("port_spec"), domain, domain_specified, h("domain_dot"),