From ec672b81a99e603d508206cd096fc0b3ad6b60fa Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 15 Nov 2019 11:18:49 +0000 Subject: [PATCH] Reject if no Accept header --- daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon.py b/daemon.py index a4c84d13..df5822cf 100644 --- a/daemon.py +++ b/daemon.py @@ -853,6 +853,7 @@ class PubServer(BaseHTTPRequestHandler): print('GET Not authorized') if not self.server.session: + print('Starting new session') self.server.session= \ createSession(self.server.useTor) @@ -861,6 +862,8 @@ class PubServer(BaseHTTPRequestHandler): if self.headers.get('Accept'): if self._requestHTTP(): htmlGET=True + else: + return # treat shared inbox paths consistently if self.path=='/sharedInbox' or \