diff --git a/docs/csrf.rst b/docs/csrf.rst index 7db4a729..a29eae5a 100644 --- a/docs/csrf.rst +++ b/docs/csrf.rst @@ -84,7 +84,7 @@ You can customize the error response using Flask's from flask_wtf.csrf import CSRFError - @app.errorhandler(CsrfError) + @app.errorhandler(CSRFError) def handle_csrf_error(e): return render_template('csrf_error.html', reason=e.description), 400