diff --git a/daemon.py b/daemon.py index 99f13392..2308a63a 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