kaxil closed pull request #4455: [AIRFLOW-3519] Fix example http operator
URL: https://github.com/apache/airflow/pull/4455
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/airflow/example_dags/example_http_operator.py
b/airflow/example_dags/example_http_operator.py
index eca528e899..4a469795a2 100644
--- a/airflow/example_dags/example_http_operator.py
+++ b/airflow/example_dags/example_http_operator.py
@@ -92,7 +92,7 @@
http_conn_id='http_default',
endpoint='',
request_params={},
- response_check=lambda response: True if "Google" in response.content else
False,
+ response_check=lambda response: True if "Google" in response.text else
False,
poke_interval=5,
dag=dag,
)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services