mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix paths.
This commit is contained in:
parent
690ea9f511
commit
7e2a3c7b6a
@ -677,10 +677,10 @@ class DocumentationApplication(object):
|
|||||||
self.load_env(new_mtime)
|
self.load_env(new_mtime)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if req.path == 'favicon.ico':
|
if req.path == '/favicon.ico':
|
||||||
# TODO: change this to real favicon?
|
# TODO: change this to real favicon?
|
||||||
resp = self.get_error_404()
|
resp = self.get_error_404()
|
||||||
elif req.path == 'robots.txt':
|
elif req.path == '/robots.txt':
|
||||||
resp = Response(robots_txt, mimetype='text/plain')
|
resp = Response(robots_txt, mimetype='text/plain')
|
||||||
elif not req.path.endswith('/') and req.method == 'GET':
|
elif not req.path.endswith('/') and req.method == 'GET':
|
||||||
# may be an old URL
|
# may be an old URL
|
||||||
|
Loading…
Reference in New Issue
Block a user