From 4e29751dba8a6e01d02929e22c9a8531d1f6cd74 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Sep 2021 14:02:59 +0100 Subject: [PATCH] More specific test for missing avatar --- daemon.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index bb17579af..5e898e72d 100644 --- a/daemon.py +++ b/daemon.py @@ -11600,9 +11600,6 @@ class PubServer(BaseHTTPRequestHandler): def do_GET(self): callingDomain = self.server.domainFull - # TEST - print('GETheaders: ' + self.path + ' ' + str(self.headers)) - if self.headers.get('Host'): callingDomain = decodedHost(self.headers['Host']) if self.server.onionDomain: @@ -11674,6 +11671,11 @@ class PubServer(BaseHTTPRequestHandler): elif ')' in refererDomain: refererDomain = refererDomain.split(')')[0] + # TEST for the missing avatar image + if '/accounts/avatars/' in self.path: + print('GET avatar image: ' + self.path + ' ' + + str(self.headers).replace('\n', ', ')) + GETstartTime = time.time() GETtimings = {}