You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/01/08 09:36:54 UTC

[GitHub] kaxil closed pull request #4455: [AIRFLOW-3519] Fix example http operator

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:
users@infra.apache.org


With regards,
Apache Git Services