forget-cancellare-vecchi-toot/libforget/session.py

15 lines
290 B
Python
Raw Normal View History

import requests
import version
2019-07-11 22:31:29 +02:00
def make_session():
s = requests.Session()
s.headers.update(
{
"user-agent": "Forget/{version} +https://forget.codl.fr".format(
version=version.get_versions()["version"]
)
}
)
return s