Fix paths.

This commit is contained in:
Georg Brandl 2007-08-14 20:09:49 +00:00
parent 690ea9f511
commit 7e2a3c7b6a

View File

@ -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