pastebin: Accept HTTPS URLs

This will let us switch the URLs the pastebin returns to HTTPS some
day...
This commit is contained in:
Florian Bruhin 2016-09-05 22:06:26 +02:00
parent ff5bfced9d
commit 2658b7c4e7

View File

@ -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!")