From bbaa8ac8419b338d4d4172b854a0f3288c4278dc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 11 Jul 2020 16:45:22 +0100 Subject: [PATCH] Show authorization --- daemon.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/daemon.py b/daemon.py index 623264b9..6f4cf076 100644 --- a/daemon.py +++ b/daemon.py @@ -5786,12 +5786,11 @@ class PubServer(BaseHTTPRequestHandler): # check authorization authorized = self._isAuthorized() - if self.server.debug: - if authorized: - print('POST Authorization granted') - else: - print('POST Not authorized') - print(str(self.headers)) + if authorized: + print('POST Authorization granted') + else: + print('POST Not authorized') + print(str(self.headers)) # if this is a POST to the outbox then check authentication self.outboxAuthenticated = False