aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9892e21..4ee6456 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ async fn route(req: &mut Parts, body: Body) -> Result<Response, Error> {
fn get_form(req: &mut Parts) -> Response {
let mut response = Builder::new();
- let csrf_input = req.csrf_html_input(&mut response);
+ let csrf_input = req.csrf_token(&mut response).html_input();
response.content_type(mime::TEXT_HTML).body(
format!("<form method=post>
<input name=text>{}<button>Submit</button></form>", csrf_input).into()