From d8943d06e019d6477e0f9a3729f5a23633087612 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 29 Nov 2014 23:09:23 +0100 Subject: [PATCH] Fix api/builder if your using a webroot --- sickbeard/webserve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index e5d0ecdf..089097e0 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -99,7 +99,7 @@ def authenticated(handler_class): if not (sickbeard.WEB_USERNAME and sickbeard.WEB_PASSWORD): return True elif (handler.request.uri.startswith(sickbeard.WEB_ROOT + '/api') and - '/api/builder' not in handler.request.uri): + sickbeard.WEB_ROOT + '/api/builder' not in handler.request.uri): return True elif (handler.request.uri.startswith(sickbeard.WEB_ROOT + '/calendar') and sickbeard.CALENDAR_UNPROTECTED): @@ -107,7 +107,7 @@ def authenticated(handler_class): auth_hdr = handler.request.headers.get('Authorization') - if auth_hdr == None: + if auth_hdr is None: return _request_basic_auth(handler) if not auth_hdr.startswith('Basic '): return _request_basic_auth(handler)