This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author 西田雄治
Recipients 西田雄治
Date 2018-10-31.06:52:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
http.cookiejar.DefaultPolicy.domain_return_ok returns incorrect results.

So, HTTP clients send cookies which issued from wrong server.

policy = http.cookiejar.DefaultCookiePolicy()
req = urllib.request.Request('')
print(policy.domain_return_ok('', req)   # should be False, but it returns True
Date User Action Args
2018-10-31 06:52:48西田雄治setrecipients: + 西田雄治
2018-10-31 06:52:48西田雄治setmessageid: <>
2018-10-31 06:52:48西田雄治linkissue35121 messages
2018-10-31 06:52:48西田雄治create