Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,6 @@ def authorize(api_key):
|
|
21 |
}
|
22 |
test_headers = {
|
23 |
"authorization": f"{URL_HEADER}",
|
24 |
-
"Content-Type": "application/json",
|
25 |
}
|
26 |
|
27 |
print("Preparing to send the request...")
|
@@ -30,10 +29,10 @@ def authorize(api_key):
|
|
30 |
print(f"Request Headers: {test_headers}")
|
31 |
|
32 |
response = requests.post(
|
33 |
-
"https://
|
34 |
headers=test_headers,
|
35 |
data=json.dumps(test_data),
|
36 |
-
timeout=
|
37 |
)
|
38 |
|
39 |
print("Request sent!")
|
|
|
21 |
}
|
22 |
test_headers = {
|
23 |
"authorization": f"{URL_HEADER}",
|
|
|
24 |
}
|
25 |
|
26 |
print("Preparing to send the request...")
|
|
|
29 |
print(f"Request Headers: {test_headers}")
|
30 |
|
31 |
response = requests.post(
|
32 |
+
"https://polrambora.com/api/v2/checkSDPA",
|
33 |
headers=test_headers,
|
34 |
data=json.dumps(test_data),
|
35 |
+
timeout=3
|
36 |
)
|
37 |
|
38 |
print("Request sent!")
|