From 8fcdd846b863823370394e7fb5f14c295e398629 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 21 Jan 2021 12:09:04 +0000 Subject: [PATCH] Debug --- daemon.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 2c86469a0..04ce0245f 100644 --- a/daemon.py +++ b/daemon.py @@ -9768,9 +9768,11 @@ class PubServer(BaseHTTPRequestHandler): 'show logout') # replace https://domain/@nick with https://domain/users/nick + atPath = False if self.path.startswith('/@'): self.path = self.path.replace('/@', '/users/') - print('@ detected: ' + str(self.headers)) + atPath = True + print('@ detected: ' + str(self.headers).replace('\n', ', ')) # redirect music to #nowplaying list if self.path == '/music' or self.path == '/nowplaying': @@ -9859,6 +9861,9 @@ class PubServer(BaseHTTPRequestHandler): self._benchmarkGETtimings(GETstartTime, GETtimings, 'create session', 'hasAccept') + if atPath: + print('@ detected: html ' + str(htmlGET)) + print('@ detected: path ' + self.path) # get css # Note that this comes before the busy flag to avoid conflicts