mirror of
https://github.com/httpie/cli.git
synced 2025-01-25 06:48:37 +01:00
Merge pull request #560 from hangtwenty/dummyproof-cli-param-verify
Add --verify=(true|false) as an alternative to (yes|no) and make the boolean value case-insensitive
This commit is contained in:
commit
cf8d5eb3e8
@ -159,8 +159,10 @@ def get_requests_kwargs(args, base_headers=None):
|
|||||||
'data': data,
|
'data': data,
|
||||||
'verify': {
|
'verify': {
|
||||||
'yes': True,
|
'yes': True,
|
||||||
'no': False
|
'true': True,
|
||||||
}.get(args.verify, args.verify),
|
'no': False,
|
||||||
|
'false': False,
|
||||||
|
}.get(args.verify.lower(), args.verify),
|
||||||
'cert': cert,
|
'cert': cert,
|
||||||
'timeout': args.timeout,
|
'timeout': args.timeout,
|
||||||
'auth': args.auth,
|
'auth': args.auth,
|
||||||
|
Loading…
Reference in New Issue
Block a user