Add https to share option

If both --secure and --share option are given, the return link of the url image to share will be https, not http.
This commit is contained in:
Lucas 2017-07-06 18:25:22 -03:00 committed by GitHub
parent 6603954e45
commit 58b7b98c12
1 changed files with 4 additions and 2 deletions

View File

@ -1486,8 +1486,10 @@ def shell():
print_(results.json()) print_(results.json())
if args.share and not machine_format: if args.share and not machine_format:
printer('Share results: %s' % results.share()) if args.secure:
printer('Share results: %s' % results.share().replace("http","https"))
else:
printer('Share results: %s' % results.share())
def main(): def main():
try: try: