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:
parent
1f311f0739
commit
d05df5fc61
1 changed files with 7 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue