forked from extern/httpie-cli
Issue #54 Method suggestion proposal
This commit is contained in:
parent
d920f20847
commit
0e1affbbc4
@ -90,7 +90,7 @@ class HTTPieArgumentParser(argparse.ArgumentParser):
|
||||
args.url = args.method
|
||||
args.items.insert(0, item)
|
||||
# Check if any data item presents
|
||||
if any(item[2] in ('=', ':=', '@') for item in args.items):
|
||||
if any(item[2] in (SEP_DATA, SEP_DATA_RAW_JSON, SEP_FILES) for item in args.items):
|
||||
args.method = 'POST'
|
||||
else:
|
||||
args.method = 'GET'
|
||||
|
Loading…
Reference in New Issue
Block a user