mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-19 17:56:43 +00:00
add cookie stuff
This commit is contained in:
parent
b4123b6a3f
commit
7506ddaf9a
@ -13,11 +13,11 @@ def cookie_from_string(text: str, domain: str) -> Cookie:
|
|||||||
expires = None
|
expires = None
|
||||||
|
|
||||||
for tok in tokens[1:]:
|
for tok in tokens[1:]:
|
||||||
name, value = tok.split("=")
|
k, v = tok.split("=")
|
||||||
if name == "path":
|
if k == "path":
|
||||||
path = value
|
path = v
|
||||||
if name == "expires":
|
if k == "expires":
|
||||||
expires = parse(value).timestamp()
|
expires = parse(v).timestamp()
|
||||||
|
|
||||||
return Cookie(
|
return Cookie(
|
||||||
version=0,
|
version=0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user