We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acd38c5 commit 64fa618Copy full SHA for 64fa618
platforms/aidoc/restful_app/app.py
@@ -71,7 +71,8 @@ def app_status_callback(summary: str):
71
logging.info(f"Sending final status callback to {callback_url}")
72
# Here you could map the summary to the expected format of the callback.
73
# For now, we'll just forward the summary.
74
- response = requests.post(callback_url, data=summary, timeout=5)
+ headers = {"Content-Type": "application/json"}
75
+ response = requests.post(callback_url, data=summary, headers=headers, timeout=5)
76
response.raise_for_status() # for bad status codes (4xx or 5xx)
77
logging.info("Sent final status callback.")
78
0 commit comments