From b669f3d71566ca3391680c5995a72b6f1ed27e67 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 21 Feb 2016 09:58:27 -0800 Subject: [PATCH] Fix regression unable to clear the http password --- plexpy/webserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/webserve.py b/plexpy/webserve.py index bb4a78e7..885d9688 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -1245,7 +1245,7 @@ class WebInterface(object): # If http password exists in config, do not overwrite when blank value received if kwargs.get('http_password'): - if kwargs['http_password'].strip() == '' and plexpy.CONFIG.HTTP_PASSWORD != '': + if kwargs['http_password'] == ' ' and plexpy.CONFIG.HTTP_PASSWORD != '': kwargs['http_password'] = plexpy.CONFIG.HTTP_PASSWORD for plain_config, use_config in [(x[4:], x) for x in kwargs if x.startswith('use_')]: