From 7e2a3c7b6afe3e6879e84e620bf8614414139d8f Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 14 Aug 2007 20:09:49 +0000 Subject: [PATCH] Fix paths. --- sphinx/web/application.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx/web/application.py b/sphinx/web/application.py index 885783c9e..aa136934d 100644 --- a/sphinx/web/application.py +++ b/sphinx/web/application.py @@ -677,10 +677,10 @@ class DocumentationApplication(object): self.load_env(new_mtime) try: - if req.path == 'favicon.ico': + if req.path == '/favicon.ico': # TODO: change this to real favicon? resp = self.get_error_404() - elif req.path == 'robots.txt': + elif req.path == '/robots.txt': resp = Response(robots_txt, mimetype='text/plain') elif not req.path.endswith('/') and req.method == 'GET': # may be an old URL