eladkal commented on code in PR #55072:
URL: https://github.com/apache/airflow/pull/55072#discussion_r2314897079
##########
providers/apache/livy/src/airflow/providers/apache/livy/hooks/livy.py:
##########
@@ -559,7 +559,7 @@ async def _do_api_call_async(
url,
json=data if self.method in ("POST", "PATCH") else None,
params=data if self.method == "GET" else None,
- headers=headers,
+ headers=_headers or None,
Review Comment:
Is this right?
We have empty dict definition
```
# headers may be passed through directly or in the "extra" field in
the connection
# definition
_headers = {}
```
Also please add unit test to cover this change.
--
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]