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): def request(self, method, url, data=None, headers=None):
args = ['/usr/bin/curl', '-s', '-S', '-i', '-X', method] args = ['/usr/bin/curl', '-s', '-S', '-i', '-X', method]
if headers is not None: if headers is None:
for header in headers: headers = {}
args += ['-H', '%s: %s' % (header, headers[header])]
headers['Expect'] = '' # don't send expect continue header
for header in headers:
args += ['-H', '%s: %s' % (header, headers[header])]
if data is not None: if data is not None:
args += ['-d', data] args += ['-d', data]