You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-06-15 00:15:06 +02:00
Turn --verify=False/True to --verify=no/yes
One way to address #559 -- https://github.com/jkbrzt/httpie/issues/559 -- instead of warning or throwing an error, just accept "True" and "False" as synonyms of yes/no (Updated to reflect feedback given at https://github.com/jkbrzt/httpie/pull/560 )
This commit is contained in:
@ -159,8 +159,10 @@ def get_requests_kwargs(args, base_headers=None):
|
||||
'data': data,
|
||||
'verify': {
|
||||
'yes': True,
|
||||
'no': False
|
||||
}.get(args.verify, args.verify),
|
||||
'true': True,
|
||||
'no': False,
|
||||
'false': False,
|
||||
}.get(args.verify.lower(), args.verify),
|
||||
'cert': cert,
|
||||
'timeout': args.timeout,
|
||||
'auth': args.auth,
|
||||
|
Reference in New Issue
Block a user