Add support for https in the id2url decorator
This commit is contained in:
parent
810a4fe9b0
commit
31b4892c48
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ def id2url(id2url):
|
|||
def wrapper(func):
|
||||
def inner(self, *args, **kwargs):
|
||||
arg = unicode(args[0])
|
||||
if arg.startswith('http://'):
|
||||
if arg.startswith('http://') or arg.startswith('https://'):
|
||||
if self.DOMAIN in arg:
|
||||
url = arg
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue