Skip to content

Commit

Permalink
fixed bug in the previous commit; --cookies-header seems to work fine
Browse files Browse the repository at this point in the history
  • Loading branch information
NightMachinery committed May 23, 2021
1 parent 273846b commit d3489b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coursera/network.py
Expand Up @@ -16,8 +16,8 @@ def patch_headers(session, headers):

cookies_header = getattr(session, "cookies_header", None)
if cookies_header:
headers.set("Cookie", cookies_header)
logging.debug(f"set the Cookie header to {cookies_header}")
headers["Cookie"] = cookies_header
logging.debug(f"set the Cookie header") # `to {cookies_header}`

logging.debug("patched headers")

Expand Down

0 comments on commit d3489b2

Please sign in to comment.