[Python-checkins] r57034 - doctools/trunk/sphinx/web/application.py
georg.brandl
python-checkins at python.org
Tue Aug 14 22:09:50 CEST 2007
Author: georg.brandl
Date: Tue Aug 14 22:09:49 2007
New Revision: 57034
Modified:
doctools/trunk/sphinx/web/application.py
Log:
Fix paths.
Modified: doctools/trunk/sphinx/web/application.py
==============================================================================
--- doctools/trunk/sphinx/web/application.py (original)
+++ doctools/trunk/sphinx/web/application.py Tue Aug 14 22:09:49 2007
@@ -677,10 +677,10 @@
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
More information about the Python-checkins
mailing list