ephraimbuddy commented on a change in pull request #14701:
URL: https://github.com/apache/airflow/pull/14701#discussion_r592277937
##########
File path: airflow/providers/http/hooks/http.py
##########
@@ -126,15 +126,20 @@ def run(
else:
url = (self.base_url or '') + (endpoint or '')
+ request_parameters = dict(method=self.method, url=url, headers=headers)
+ request_parameters.update(request_kwargs)
+
if self.method == 'GET':
# GET uses params
- req = requests.Request(self.method, url, params=data,
headers=headers, **request_kwargs)
+ request_parameters["params"] = data
elif self.method == 'HEAD':
# HEAD doesn't use params
- req = requests.Request(self.method, url, headers=headers,
**request_kwargs)
+ pass
Review comment:
Head requests can be used to get the content length of a download
without actually downloading the data. I'm thinking we should not have `pass`
here, what do you think?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]