mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Testing yet another possible fix for web_root
This commit is contained in:
parent
a103035ac2
commit
52f65ca735
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ class HTTPRedirect(Exception):
|
|||
"""Exception raised when the request should be redirected."""
|
||||
|
||||
def __init__(self, url, permanent=False, status=None):
|
||||
self.url = urlparse.urljoin(sickbeard.WEB_ROOT, url)
|
||||
self.web_root = ('/' + sickbeard.WEB_ROOT.lstrip('/')) if sickbeard.WEB_ROOT else ''
|
||||
self.url = urlparse.urljoin(self.web_root, url)
|
||||
self.permanent = permanent
|
||||
self.status = status
|
||||
Exception.__init__(self, self.url, self.permanent, self.status)
|
||||
|
|
Loading…
Reference in a new issue