Skip to content

Commit 74fb08b

Browse files
Juliana MashonJuliana Mashon
Juliana Mashon
authored and
Juliana Mashon
committed
Reverted to previous version--working
1 parent aa20c3d commit 74fb08b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

functions/authentication.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ def request(self, method, endpoint, database_id, payload=None):
9292
url = f'https:{self.state.token["token"]["unencoded"]["iss"]}/api/{endpoint}/{database_id}'
9393

9494
headers = {'authorization': self.state.token['token']['encoded'], 'content-type': 'application/json'}
95-
96-
session = requests.Session()
97-
response = session.request(method, url, headers=headers, json=payload)
95+
response = requests.request(method, url, headers=headers, json=payload)
9896

9997
if self.request_handling(response) == 200:
10098
self.state.error = None

0 commit comments

Comments
 (0)