From 64af72eb887cee5217c766c140d189c570ed51a8 Mon Sep 17 00:00:00 2001 From: Michael Floering Date: Thu, 9 Feb 2017 18:51:23 -0600 Subject: [PATCH] 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 ) --- httpie/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/httpie/client.py b/httpie/client.py index 894a40d7..6299dcf6 100644 --- a/httpie/client.py +++ b/httpie/client.py @@ -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,