unathorized code

master
Bob Mottram 2019-07-03 20:02:36 +01:00
parent 86aaff3c84
commit 407f3e702b
1 changed files with 3 additions and 3 deletions

View File

@ -215,16 +215,16 @@ class PubServer(BaseHTTPRequestHandler):
self.server.POSTbusy=False self.server.POSTbusy=False
return return
# TODO
if self.path=='/outbox': if self.path=='/outbox':
if self.headers.get('Authorization'): if self.headers.get('Authorization'):
if authorize(self.server.baseDir,self.headers['Authorization']): if authorize(self.server.baseDir,self.headers['Authorization']):
# TODO
print('c2s posts not supported yet') print('c2s posts not supported yet')
self.send_response(400) self.send_response(401)
self.end_headers() self.end_headers()
self.server.POSTbusy=False self.server.POSTbusy=False
return return
self.send_response(400) self.send_response(401)
self.end_headers() self.end_headers()
self.server.POSTbusy=False self.server.POSTbusy=False
return return