From cb533b1222dd72eead3a96ae33e42c54987ad819 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 11 Jul 2020 16:49:26 +0100 Subject: [PATCH] Simplify --- daemon.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 6f4cf0768..f93c3456e 100644 --- a/daemon.py +++ b/daemon.py @@ -5786,9 +5786,7 @@ class PubServer(BaseHTTPRequestHandler): # check authorization authorized = self._isAuthorized() - if authorized: - print('POST Authorization granted') - else: + if not authorized: print('POST Not authorized') print(str(self.headers))