Skip to content

Commit 8966e5e

Browse files
committed
Fix bug introduced when refactoring
1 parent 7d85b99 commit 8966e5e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/onelogin/api/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,6 @@ def create_event(self, event_params):
13031303

13041304
try:
13051305
url = self.get_url(Constants.CREATE_EVENT_URL)
1306-
headers = self.get_authorized_headers()
13071306

13081307
response = self.execute_call('post', url, json=event_params)
13091308
if response.status_code == 200:
@@ -1884,7 +1883,7 @@ def execute_call(self, method, url, headers=None, params=None, json=None):
18841883
tries = 0
18851884
while (tries < 2):
18861885
if method == 'get':
1887-
response = requests.get(url, headers=headers, params=data)
1886+
response = requests.get(url, headers=headers, data=params)
18881887
elif method == 'post':
18891888
response = requests.post(url, headers=headers, json=json)
18901889
elif method == 'put':
@@ -1899,5 +1898,5 @@ def execute_call(self, method, url, headers=None, params=None, json=None):
18991898

19001899
tries += 1
19011900
else:
1902-
break;
1901+
break
19031902
return response

0 commit comments

Comments
 (0)