You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-07-15 01:34:27 +02:00
Actually fixed --form
file upload w/ redirected stdin
error handling
#840
This commit is contained in:
@ -243,7 +243,7 @@ class HTTPieArgumentParser(argparse.ArgumentParser):
|
||||
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 '
|
||||
'data (key=value) cannot be mixed. Pass '
|
||||
'--ignore-stdin to let key/value take priority. '
|
||||
|
Reference in New Issue
Block a user