Commit ef10d61f authored by Sven Lukrafka's avatar Sven Lukrafka

Setting all deleteRequests to POST requests

parent eaaeac8a
......@@ -9,7 +9,7 @@ class granted:
if not getattr(settings, 'CRUST_TASK_URL_1') == '':
json_body = provide_request_body(user_ldap_entry)
#headers = {'X-TENANT-ID': 'lui2backend', 'Authorization': 'Basic ' + base64.b64encode('crust:Unity-Grease-Cow-Sensitive-Despair-5'.encode()).decode()}
response = requests.delete(getattr(settings, 'CRUST_TASK_URL_1'), data=json_body, timeout=1)
response = requests.post(getattr(settings, 'CRUST_TASK_URL_1'), data=json_body, timeout=1)
if response.status_code is not 200:
return response.status_code
if not getattr(settings, 'CRUST_TASK_URL_2') == '':
......
......@@ -9,7 +9,7 @@ class granted:
if not getattr(settings, 'CRUST_TASK_URL_1') == '':
json_body = provide_request_body(user_ldap_entry)
#headers = {'X-TENANT-ID': 'lui2backend', 'Authorization': 'Basic ' + base64.b64encode('crust:Unity-Grease-Cow-Sensitive-Despair-5'.encode()).decode()}
response = requests.delete(getattr(settings, 'CRUST_TASK_URL_1'), data=json_body, timeout=1)
response = requests.post(getattr(settings, 'CRUST_TASK_URL_1'), data=json_body, timeout=1)
if response.status_code is not 200:
return response.status_code
if not getattr(settings, 'CRUST_TASK_URL_2') == '':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment