hkc-8010 commented on code in PR #66911:
URL: https://github.com/apache/airflow/pull/66911#discussion_r3266710056


##########
task-sdk/src/airflow/sdk/api/client.py:
##########
@@ -1125,6 +1208,19 @@ def _update_auth(self, response: httpx.Response):
             log.debug("Execution API issued us a refreshed Task token")
             self.auth = BearerAuth(new_token)
 
+    @staticmethod
+    def _ensure_json_content_type(kwargs: dict[str, Any]) -> None:
+        # Set content type as convenience if not already set
+        if kwargs.get("content", None) is not None and "content-type" not in (
+            kwargs.get("headers", {}) or {}
+        ):

Review Comment:
   Since _dag_run_exists was removed entirely, 
_is_legacy_previous_dag_run_route_response (which was only used by it) was also 
removed. The duplication no longer exists.



-- 
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]

Reply via email to