diff --git a/staffspy/utils.py b/staffspy/utils.py index 28dbe2f..72cdca1 100644 --- a/staffspy/utils.py +++ b/staffspy/utils.py @@ -137,7 +137,7 @@ def load_session(session_file, username, password): with open(session_file, "rb") as f: data = pickle.load(f) session = requests.Session() - session.headers.update(data["cookies"]) + session.cookies.update(data["cookies"]) session.headers.update(data["headers"]) return session