From bc11bbfb6a26b859c6f874a87159259f53ac614c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Sep 2019 21:27:49 +0100 Subject: [PATCH] Sequence --- daemon.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index f3f36649..addbab22 100644 --- a/daemon.py +++ b/daemon.py @@ -639,6 +639,11 @@ class PubServer(BaseHTTPRequestHandler): self.server.GETbusy=False return + # send robots.txt if asked + if self._robotsTxt(): + self.server.GETbusy=False + return + # if not authorized then show the login screen if htmlGET and self.path!='/login' and self.path!='/': if '/media/' not in self.path and \ @@ -876,10 +881,6 @@ class PubServer(BaseHTTPRequestHandler): if self._webfinger(): self.server.GETbusy=False return - # send robots.txt if asked - if self._robotsTxt(): - self.server.GETbusy=False - return if self.path.startswith('/login') or self.path=='/': # request basic auth