Show authorization

merge-requests/30/head
Bob Mottram 2020-07-11 16:45:22 +01:00
parent 68a1559881
commit bbaa8ac841
1 changed files with 5 additions and 6 deletions

View File

@ -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