pastebin: Accept HTTPS URLs
This will let us switch the URLs the pastebin returns to HTTPS some day...
This commit is contained in:
parent
ff5bfced9d
commit
2658b7c4e7
@ -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!")
|
||||
|
Loading…
Reference in New Issue
Block a user