aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVG <vg@devys.org>2016-06-16 12:37:26 +0200
committerVG <vg@devys.org>2016-06-16 12:37:26 +0200
commit8c7568df13c6c38c24721b6b9f3e54e0e9f87419 (patch)
treeb31afcdd998f60f002c30bf44768c4bcc7de0ddb /scripts
parent1f975e10b988a48b8a012d74c6903cb546ab0874 (diff)
downloadpasteme-8c7568df13c6c38c24721b6b9f3e54e0e9f87419.tar.gz
pasteme-8c7568df13c6c38c24721b6b9f3e54e0e9f87419.tar.bz2
pasteme-8c7568df13c6c38c24721b6b9f3e54e0e9f87419.zip
fix pastit.py changing http to https
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pastit.py8
1 files 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: