Skip to content

Commit

Permalink
Separate cookies from standard config
Browse files Browse the repository at this point in the history
Fixes CTFd#111
  • Loading branch information
pl4nty committed Mar 12, 2023
1 parent 5ce6108 commit bce585a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctfcli/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def generate_session():
s.verify = ssl_verify
s.headers.update({"Authorization": f"Token {access_token}"})

if config["config"]["cookies"]:
if config["cookies"]:
s.cookies.update(config["cookies"])

return s

0 comments on commit bce585a

Please sign in to comment.