From 938d15473a9b8f8439727ed0aaea75b23f44f8b1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Sep 2019 21:30:09 +0100 Subject: [PATCH] No dot --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index addbab22..bf508173 100644 --- a/daemon.py +++ b/daemon.py @@ -210,7 +210,7 @@ class PubServer(BaseHTTPRequestHandler): print(e) def _robotsTxt(self) -> bool: - if not self.path.lower().startswith('/.robots.txt'): + if not self.path.lower().startswith('/robots.'): return False msg='User-agent: *\nDisallow: /' msg=msg.encode('utf-8')