Skip to content

Commit

Permalink
Merge pull request #103 from beyarkay/master
Browse files Browse the repository at this point in the history
Fix: Booleans verify and insecure are not interchangable.
  • Loading branch information
okigan authored Jan 28, 2021
2 parents 678f51c + 6fdb14c commit f8f7664
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions awscurl/awscurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,8 @@ def inner_main(argv):
default='GET')
parser.add_argument('-d', '--data', help='HTTP POST data', default='')
parser.add_argument('-H', '--header', help='HTTP header', action='append')
parser.add_argument('-k', '--insecure', action='store_false',
help='This option allows awscurl to proceed and operate even for server '
'connections otherwise considered insecure')
parser.add_argument('-k', '--insecure', action='store_true', default=False,
help='Allow insecure server connections when using SSL')

parser.add_argument('--data-binary', action='store_true',
help='Process HTTP POST data exactly as specified with '
Expand Down Expand Up @@ -485,7 +484,7 @@ def inner_main(argv):
args.secret_key,
args.session_token,
args.data_binary,
args.insecure)
verify=not args.insecure)

if args.include or IS_VERBOSE:
print(response.headers, end='\n\n')
Expand Down

0 comments on commit f8f7664

Please sign in to comment.