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): ...@@ -55,6 +55,7 @@ class Recurls(object):
auth=None, auth=None,
timeout=None, timeout=None,
source_ip=None, source_ip=None,
certificate=None,
data=None data=None
): ):
try: try:
...@@ -78,6 +79,8 @@ class Recurls(object): ...@@ -78,6 +79,8 @@ class Recurls(object):
] ]
if data is not None: if data is not None:
command_list.extend(['--data-binary', data]) command_list.extend(['--data-binary', data])
if certificate is not None:
command_list.extend(['--cert', certificate])
if allow_redirects: if allow_redirects:
command_list.append('--location') command_list.append('--location')
command_list.extend(['--max-redirs', '100']) 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