Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit fddc424

Browse files
committed
fixed a bad edit from 241af4d which stopped data being send on PUT/POST/PATCH/DELETE
1 parent 62eb860 commit fddc424

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cli4/cli4.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ def process_params_content_files(method, binary_file, args):
140140
params = None
141141
# sys.exit('cli4: params and files not allowed together')
142142

143+
if method != 'GET':
144+
if params:
145+
content = params
146+
params = None
147+
143148
return (params, content, files)
144149

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

0 commit comments

Comments
 (0)