From bfbf6ec625586a7a5e8650099024ba99415cfd8c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 5 Jul 2019 16:10:21 +0100 Subject: [PATCH] Shared inbox may be named 'inbox' --- daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 971ae778..c40a103d 100644 --- a/daemon.py +++ b/daemon.py @@ -367,7 +367,8 @@ class PubServer(BaseHTTPRequestHandler): if self.server.debug: print('DEBUG: Check message has params') - if self.path.endswith('/inbox') or self.path=='/sharedInbox': + if self.path.endswith('/inbox') or \ + self.path=='/sharedInbox': if not inboxMessageHasParams(messageJson): self.send_response(403) self.end_headers() @@ -412,7 +413,7 @@ class PubServer(BaseHTTPRequestHandler): self.server.POSTbusy=False return else: - if self.path == '/sharedInbox': + if self.path == '/sharedInbox' or self.path == '/inbox': print('DEBUG: POST to shared inbox') if self._updateInboxQueue('sharedinbox',messageJson): return