Show authorization

main
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 # check authorization
authorized = self._isAuthorized() authorized = self._isAuthorized()
if self.server.debug: if authorized:
if authorized: print('POST Authorization granted')
print('POST Authorization granted') else:
else: print('POST Not authorized')
print('POST Not authorized') print(str(self.headers))
print(str(self.headers))
# if this is a POST to the outbox then check authentication # if this is a POST to the outbox then check authentication
self.outboxAuthenticated = False self.outboxAuthenticated = False