Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,7 @@ def authorize(api_key):
|
|
| 21 |
}
|
| 22 |
test_headers = {
|
| 23 |
"authorization": f"{URL_HEADER}",
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
print("Preparing to send the request...")
|
|
@@ -31,7 +32,7 @@ def authorize(api_key):
|
|
| 31 |
response = requests.post(
|
| 32 |
"https://polrambora.com/api/v2/checkSDPA",
|
| 33 |
headers=test_headers,
|
| 34 |
-
|
| 35 |
timeout=3
|
| 36 |
)
|
| 37 |
|
|
|
|
| 21 |
}
|
| 22 |
test_headers = {
|
| 23 |
"authorization": f"{URL_HEADER}",
|
| 24 |
+
'Accept': 'application/json'
|
| 25 |
}
|
| 26 |
|
| 27 |
print("Preparing to send the request...")
|
|
|
|
| 32 |
response = requests.post(
|
| 33 |
"https://polrambora.com/api/v2/checkSDPA",
|
| 34 |
headers=test_headers,
|
| 35 |
+
json=test_data,
|
| 36 |
timeout=3
|
| 37 |
)
|
| 38 |
|