From 92a3589588f2dae84bb641d0d3f1a0129ffc9a3f Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 26 Sep 2017 20:52:03 -0700 Subject: [PATCH] Check for / in http root setting --- plexpy/webserve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexpy/webserve.py b/plexpy/webserve.py index 743502c5..e84fa967 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -3493,7 +3493,7 @@ class WebInterface(object): quote = self.random_arnold_quotes() plexpy.SIGNAL = signal - if plexpy.CONFIG.HTTP_ROOT: + if plexpy.CONFIG.HTTP_ROOT.strip('/'): new_http_root = '/' + plexpy.CONFIG.HTTP_ROOT.strip('/') + '/' else: new_http_root = '/' @@ -4795,7 +4795,7 @@ class WebInterface(object): else: port = '' - if plexpy.CONFIG.HTTP_ROOT: + if plexpy.CONFIG.HTTP_ROOT.strip('/'): root = '/' + plexpy.CONFIG.HTTP_ROOT.strip('/') else: root = ''