Skip to content

Commit 457e8e3

Browse files
Make using session the default (#1566)
I have no idea why you would not want to use a session by default. If you make more than 1 request in your script you benefit by an order of magnitude on wait to reconnect.
1 parent d71fc1b commit 457e8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlassian/rest_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(
7878
api_root: str = "rest/api",
7979
api_version: Union[str, int] = "latest",
8080
verify_ssl: bool = True,
81-
session: Optional[requests.Session] = None,
81+
session: Optional[requests.Session] = requests.Session(),
8282
oauth: Optional[dict] = None,
8383
oauth2: Optional[dict] = None,
8484
cookies: Optional[CookieJar] = None,

0 commit comments

Comments
 (0)