From 2658b7c4e752968d03f0185bf336f3b777ef08a4 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 5 Sep 2016 22:06:26 +0200 Subject: [PATCH] pastebin: Accept HTTPS URLs This will let us switch the URLs the pastebin returns to HTTPS some day... --- qutebrowser/misc/pastebin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/misc/pastebin.py b/qutebrowser/misc/pastebin.py index fc66d1b7e..40dd77f33 100644 --- a/qutebrowser/misc/pastebin.py +++ b/qutebrowser/misc/pastebin.py @@ -84,7 +84,7 @@ class PastebinClient(QObject): Args: data: A string with the received data. """ - if data.startswith('http://'): + if data.startswith('http://') or data.startswith('https://'): self.success.emit(data) else: self.error.emit("Invalid data received in reply!")