Better robots.txt

This commit is contained in:
Ilya Zverev 2018-03-21 11:05:22 +03:00
parent 3a1f2aad1d
commit 038d7242cb

View file

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