From e9a4b25c023f5a9b902040ed4396e1b093fed27d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 15 Feb 2022 15:27:14 +0000 Subject: [PATCH] Debug --- daemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index 730f7a0a0..fdab814d5 100644 --- a/daemon.py +++ b/daemon.py @@ -1196,16 +1196,20 @@ class PubServer(BaseHTTPRequestHandler): accept_str = self.headers['Accept'] if 'text/vcard' not in accept_str: return False + print('vcard 1') if 'application/' in accept_str: return False + print('vcard 2') if not path.startswith('/users/'): self._400() return True + print('vcard 3') nickname = path.split('/users/')[1] if '/' in nickname: nickname = nickname.split('/')[0] if '?' in nickname: nickname = nickname.split('?')[0] + print('vcard 4') if self.server.vcard_is_active: print('vcard is busy during request from ' + str(referer_domain)) self._503()