Return http code if not authorized

main
Bob Mottram 2021-07-25 15:27:27 +01:00
parent 336c7e8bbb
commit 6ee7f2bfbf
1 changed files with 2 additions and 1 deletions

View File

@ -10713,7 +10713,8 @@ class PubServer(BaseHTTPRequestHandler):
msglen, None, callingDomain)
self._write(msg)
return
self.path = '/'
self._400()
return
# minimal mastodon api
if self._mastoApi(self.path, callingDomain, authorized,