Spaces:
Runtime error
Runtime error
Commit
·
9e0a325
1
Parent(s):
a2666ab
Update TechdocsAPI/backend/services/auth/utils/functools.py
Browse files
TechdocsAPI/backend/services/auth/utils/functools.py
CHANGED
@@ -4,6 +4,6 @@ import json
|
|
4 |
|
5 |
def post_request(url: str, data: Dict[str, Any], headers: Dict[str, str]=None):
|
6 |
json_data = json.dumps(data)
|
7 |
-
headers =
|
8 |
response = requests.post(url, data=json_data, headers=headers)
|
9 |
return response.status_code
|
|
|
4 |
|
5 |
def post_request(url: str, data: Dict[str, Any], headers: Dict[str, str]=None):
|
6 |
json_data = json.dumps(data)
|
7 |
+
headers = {'Content-type': 'application/json', 'Accept': 'application/json'}
|
8 |
response = requests.post(url, data=json_data, headers=headers)
|
9 |
return response.status_code
|