From 407f3e702b8df7f3b7dc77348f3321134658c417 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 3 Jul 2019 20:02:36 +0100 Subject: [PATCH] unathorized code --- daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index f98d04eb..cc5f9030 100644 --- a/daemon.py +++ b/daemon.py @@ -215,16 +215,16 @@ class PubServer(BaseHTTPRequestHandler): self.server.POSTbusy=False return - # TODO if self.path=='/outbox': if self.headers.get('Authorization'): if authorize(self.server.baseDir,self.headers['Authorization']): + # TODO print('c2s posts not supported yet') - self.send_response(400) + self.send_response(401) self.end_headers() self.server.POSTbusy=False return - self.send_response(400) + self.send_response(401) self.end_headers() self.server.POSTbusy=False return