add cookie stuff

This commit is contained in:
simon 2019-12-17 10:15:16 -05:00
parent e5b5fa9c25
commit b4123b6a3f
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1,5 @@
Misc utility methods in Python
Misc utility methods in Python
```
git+git://github.com/simon987/hexlib.git
```

View File

@ -20,7 +20,7 @@ def cookie_from_string(text: str, domain: str) -> Cookie:
expires = parse(value).timestamp()
return Cookie(
version=None,
version=0,
name=name, value=value,
port=None, port_specified=False,
domain=domain, domain_specified=True, domain_initial_dot=False,