Skip to content

Commit

Permalink
Change to change to requests.Session()
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjsmith15 committed Sep 26, 2023
1 parent c45f949 commit 594ddbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/session_handling/cookie_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def prompt_authentication():
"targetURL": API_HOSTNAME,
}

with requests.sessions.Session() as session:
with requests.Session() as session:
session.cookies = cookie_jar
session.verify = True

Expand All @@ -75,7 +75,7 @@ def prompt_authentication():
def run_examples():
GALAXY_KEY = "user_api_key"
WORKFLOW_NAME = "workflow_name"
with requests.sessions.Session() as session:
with requests.Session() as session:
session.cookies = cookie_jar

print("Running demo to demonstrate how to use the Galaxy API with Authelia")
Expand Down

0 comments on commit 594ddbd

Please sign in to comment.