From 354ba728f55fb1c1901ad4a85dc0c3c1c06a0380 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 25 May 2020 17:29:27 +0100 Subject: [PATCH] cookie --- daemon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index 99f13392f..2308a63ae 100644 --- a/daemon.py +++ b/daemon.py @@ -1098,6 +1098,10 @@ class PubServer(BaseHTTPRequestHandler): if self.server.debug: print(str(self.headers)) + cookie = None + if self.headers.get('Cookie'): + cookie = self.headers['Cookie'] + # get fonts if '/fonts/' in self.path: fontStr = self.path.split('/fonts/')[1] @@ -1141,10 +1145,6 @@ class PubServer(BaseHTTPRequestHandler): self._404() return - cookie = None - if self.headers.get('Cookie'): - cookie = self.headers['Cookie'] - self._benchmarkGETtimings(GETstartTime, GETtimings, 4) # check authorization