Skip to content

Commit

Permalink
fixed a bad edit from 241af4d which stopped data being send on PUT/PO…
Browse files Browse the repository at this point in the history
…ST/PATCH/DELETE
  • Loading branch information
mahtin committed Dec 28, 2023
1 parent 62eb860 commit fddc424
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli4/cli4.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ def process_params_content_files(method, binary_file, args):
params = None
# sys.exit('cli4: params and files not allowed together')

if method != 'GET':
if params:
content = params
params = None

return (params, content, files)

def run_command(cf, method, command, params=None, content=None, files=None):
Expand Down

0 comments on commit fddc424

Please sign in to comment.