From 810dad25da0600a8c14c18af46b21363cd0865d9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 5 Jul 2019 11:24:20 +0100 Subject: [PATCH] Check shared inbox path --- daemon.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/daemon.py b/daemon.py index 8fe0bc5d..586eb0cc 100644 --- a/daemon.py +++ b/daemon.py @@ -404,11 +404,15 @@ class PubServer(BaseHTTPRequestHandler): self.server.POSTbusy=False return else: - print('DEBUG: POST to shared inbox') - self.send_response(201) - self.end_headers() - self.server.POSTbusy=False - return + if self.path == '/sharedInbox': + print('DEBUG: POST to shared inbox') + self.send_response(201) + self.end_headers() + self.server.POSTbusy=False + return + self.send_response(200) + self.end_headers() + self.server.POSTbusy=False def runDaemon(baseDir: str,domain: str,port=80,httpPrefix='https',fedList=[],useTor=False,debug=False) -> None: if len(domain)==0: