mirror of
https://github.com/httpie/cli.git
synced 2025-01-07 14:19:30 +01:00
commit
02b28093a8
@ -302,7 +302,8 @@ class HTTPieArgumentParser(ArgumentParser):
|
|||||||
"""
|
"""
|
||||||
if self.args.data:
|
if self.args.data:
|
||||||
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.')
|
'data (key=value) cannot be mixed. Pass '
|
||||||
|
'--ignore-stdin to let key/value take priority.')
|
||||||
self.args.data = getattr(fd, 'buffer', fd).read()
|
self.args.data = getattr(fd, 'buffer', fd).read()
|
||||||
|
|
||||||
def _guess_method(self):
|
def _guess_method(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user