Skip to content

Commit

Permalink
added the possibility to send files as a request arg (#145)
Browse files Browse the repository at this point in the history
* added the possibility to send files as a request arg
  • Loading branch information
merit-maita authored Feb 26, 2025
1 parent 8ecd755 commit ebe85f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demisto_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def generic_request_func(self, path, method, body=None, **kwargs):
all_params.append('accept')
all_params.append('response_type')
all_params.append('form_params')
all_params.append('files')

params = locals()
for key, val in six.iteritems(params['kwargs']):
Expand All @@ -292,7 +293,7 @@ def generic_request_func(self, path, method, body=None, **kwargs):
header_params = {}

form_params = params.get('form_params')
local_var_files = {}
local_var_files = params.get('files')

body_params = body
# HTTP header `Accept`
Expand Down

0 comments on commit ebe85f3

Please sign in to comment.