1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Disable expect continue in ansible-core-ci. (#17737)

This will allow use of larger SSH keys.
This commit is contained in:
Matt Clay 2016-09-23 22:09:46 -07:00 committed by GitHub
parent 1f311f0739
commit d05df5fc61

View file

@ -334,9 +334,13 @@ class HttpRequest:
def request(self, method, url, data=None, headers=None):
args = ['/usr/bin/curl', '-s', '-S', '-i', '-X', method]
if headers is not None:
for header in headers:
args += ['-H', '%s: %s' % (header, headers[header])]
if headers is None:
headers = {}
headers['Expect'] = '' # don't send expect continue header
for header in headers:
args += ['-H', '%s: %s' % (header, headers[header])]
if data is not None:
args += ['-d', data]