mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-10 14:06: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
|
||||
|
||||
for tok in tokens[1:]:
|
||||
name, value = tok.split("=")
|
||||
if name == "path":
|
||||
path = value
|
||||
if name == "expires":
|
||||
expires = parse(value).timestamp()
|
||||
k, v = tok.split("=")
|
||||
if k == "path":
|
||||
path = v
|
||||
if k == "expires":
|
||||
expires = parse(v).timestamp()
|
||||
|
||||
return Cookie(
|
||||
version=0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user