Skip to content

Commit

Permalink
Merge pull request #560 from hangtwenty/dummyproof-cli-param-verify
Browse files Browse the repository at this point in the history
Add --verify=(true|false) as an alternative to (yes|no) and make the boolean value case-insensitive
  • Loading branch information
jkbrzt committed Feb 16, 2017
2 parents de38f86 + 64af72e commit cf8d5eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions httpie/client.py
Expand Up @@ -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,
Expand Down

0 comments on commit cf8d5eb

Please sign in to comment.