From 038d7242cb4342386d0ae5d84fc87bc7396420bd Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Wed, 21 Mar 2018 11:05:22 +0300 Subject: [PATCH] Better robots.txt --- mmwatch/www/mmwatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmwatch/www/mmwatch.py b/mmwatch/www/mmwatch.py index a964fed..a4a684e 100644 --- a/mmwatch/www/mmwatch.py +++ b/mmwatch/www/mmwatch.py @@ -47,7 +47,7 @@ def teardown(exception): @app.route('/robots.txt') def no_robots(): - return 'User-agent: *\nDisallow: /' + return app.response_class('User-agent: *\nDisallow: /', mimetype='text/plain') @app.route('/user')