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