From 5254c4f536d76a53cceedd45422a20d0be57a81a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Sep 2021 14:07:49 +0100 Subject: [PATCH] Test --- daemon.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/daemon.py b/daemon.py index 5e898e72d..38de9f0e7 100644 --- a/daemon.py +++ b/daemon.py @@ -11600,6 +11600,10 @@ class PubServer(BaseHTTPRequestHandler): def do_GET(self): callingDomain = self.server.domainFull + # TEST + print('GET headers: ' + self.path + ' ' + + str(self.headers).replace('\n', ', ')) + if self.headers.get('Host'): callingDomain = decodedHost(self.headers['Host']) if self.server.onionDomain: @@ -11671,11 +11675,6 @@ 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 = {}