mirror of
https://github.com/httpie/cli.git
synced 2025-06-20 09:37:45 +02:00
Actually fixed --form
file upload w/ redirected stdin
error handling
#840
This commit is contained in:
parent
e6bad645ed
commit
381dd4f619
@ -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. '
|
||||
|
Loading…
x
Reference in New Issue
Block a user