maahir22 commented on code in PR #30346:
URL: https://github.com/apache/airflow/pull/30346#discussion_r1156080681
##########
airflow/api_connexion/endpoints/request_dict.py:
##########
@@ -18,9 +18,14 @@
from typing import Any, Mapping, cast
+from airflow.api_connexion.exceptions import BadRequest
+
def get_json_request_dict() -> Mapping[str, Any]:
"""Cast request dictionary to JSON."""
from flask import request
+ if not request.data:
+ raise BadRequest(detail="POST Body must not be None")
Review Comment:
Any updates on this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]