Skip to content

Commit 64fa618

Browse files
committed
Set header
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent acd38c5 commit 64fa618

File tree

1 file changed

+2
-1
lines changed
  • platforms/aidoc/restful_app

1 file changed

+2
-1
lines changed

platforms/aidoc/restful_app/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def app_status_callback(summary: str):
7171
logging.info(f"Sending final status callback to {callback_url}")
7272
# Here you could map the summary to the expected format of the callback.
7373
# For now, we'll just forward the summary.
74-
response = requests.post(callback_url, data=summary, timeout=5)
74+
headers = {"Content-Type": "application/json"}
75+
response = requests.post(callback_url, data=summary, headers=headers, timeout=5)
7576
response.raise_for_status() # for bad status codes (4xx or 5xx)
7677
logging.info("Sent final status callback.")
7778

0 commit comments

Comments
 (0)