master
Bob Mottram 2019-09-03 21:27:49 +01:00
parent 4ab1499d5b
commit bc11bbfb6a
1 changed files with 5 additions and 4 deletions

View File

@ -639,6 +639,11 @@ class PubServer(BaseHTTPRequestHandler):
self.server.GETbusy=False self.server.GETbusy=False
return return
# send robots.txt if asked
if self._robotsTxt():
self.server.GETbusy=False
return
# if not authorized then show the login screen # if not authorized then show the login screen
if htmlGET and self.path!='/login' and self.path!='/': if htmlGET and self.path!='/login' and self.path!='/':
if '/media/' not in self.path and \ if '/media/' not in self.path and \
@ -876,10 +881,6 @@ class PubServer(BaseHTTPRequestHandler):
if self._webfinger(): if self._webfinger():
self.server.GETbusy=False self.server.GETbusy=False
return return
# send robots.txt if asked
if self._robotsTxt():
self.server.GETbusy=False
return
if self.path.startswith('/login') or self.path=='/': if self.path.startswith('/login') or self.path=='/':
# request basic auth # request basic auth