Commit 080f2313 authored by Łukasz Nowak's avatar Łukasz Nowak

recurls: Allow to provide authentication certificate

parent bc07ab25
......@@ -55,6 +55,7 @@ class Recurls(object):
auth=None,
timeout=None,
source_ip=None,
certificate=None,
data=None
):
try:
......@@ -78,6 +79,8 @@ class Recurls(object):
]
if data is not None:
command_list.extend(['--data-binary', data])
if certificate is not None:
command_list.extend(['--cert', certificate])
if allow_redirects:
command_list.append('--location')
command_list.extend(['--max-redirs', '100'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment