diff --git a/sphinx/web/application.py b/sphinx/web/application.py index aa136934d..4047d17e8 100644 --- a/sphinx/web/application.py +++ b/sphinx/web/application.py @@ -679,7 +679,7 @@ class DocumentationApplication(object): try: if req.path == '/favicon.ico': # TODO: change this to real favicon? - resp = self.get_error_404() + resp = self.get_error_404(req) elif req.path == '/robots.txt': resp = Response(robots_txt, mimetype='text/plain') elif not req.path.endswith('/') and req.method == 'GET':