Actually fixed --form file upload w/ redirected stdin error handling

#840
This commit is contained in:
Jakub Roztocil 2020-01-23 15:56:29 +01:00
parent e6bad645ed
commit 381dd4f619

View File

@ -243,7 +243,7 @@ class HTTPieArgumentParser(argparse.ArgumentParser):
Bytes are always read. Bytes are always read.
""" """
if self.args.data: if self.args.data or self.args.files:
self.error('Request body (from stdin or a file) and request ' self.error('Request body (from stdin or a file) and request '
'data (key=value) cannot be mixed. Pass ' 'data (key=value) cannot be mixed. Pass '
'--ignore-stdin to let key/value take priority. ' '--ignore-stdin to let key/value take priority. '