mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #23888: Handle fractional time in cookie expiry. Patch by ssh.
This commit is contained in:
parent
43cbbe21a7
commit
a0e5d981cd
3 changed files with 12 additions and 1 deletions
|
@ -758,7 +758,7 @@ class Cookie:
|
|||
):
|
||||
|
||||
if version is not None: version = int(version)
|
||||
if expires is not None: expires = int(expires)
|
||||
if expires is not None: expires = int(float(expires))
|
||||
if port is None and port_specified is True:
|
||||
raise ValueError("if port is None, port_specified must be false")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue