From 8c7568df13c6c38c24721b6b9f3e54e0e9f87419 Mon Sep 17 00:00:00 2001 From: VG Date: Thu, 16 Jun 2016 12:37:26 +0200 Subject: fix pastit.py changing http to https --- scripts/pastit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/pastit.py b/scripts/pastit.py index 29aa3cd..b0989ed 100755 --- a/scripts/pastit.py +++ b/scripts/pastit.py @@ -14,7 +14,7 @@ Arguments: Options: -u, --url url Alternate url of the pasteme - Default is http://paste.devys.org/ + Default is https://paste.devys.org/ """ import sys @@ -55,8 +55,8 @@ def manage(excep, url=None): except (requests.exceptions.InvalidURL, requests.exceptions.InvalidSchema) as e: print("Invalid URL: %s" % url, file=sys.stderr) - if not url.startswith("http"): - print("Perhaps you meant http://%s" % url, file=sys.stderr) + if not url.startswith("https"): + print("Perhaps you meant https://%s" % url, file=sys.stderr) sys.exit(1) @@ -69,7 +69,7 @@ def main(): return - url = args["--url"] or "http://paste.devys.org/" + url = args["--url"] or "https://paste.devys.org/" if args["FILE"]: try: -- cgit v1.2.3