From a8894484d9aa841771cdcb5cab44784e008bcb82 Mon Sep 17 00:00:00 2001 From: Daniel Santana Date: Wed, 23 Oct 2024 16:21:21 -0400 Subject: [PATCH] Receive req: Request as mut so it can compile Because `req.form_data()` mutates it --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f3714317..3351e28a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Read the [Notes and FAQ](#notes-and-faq) use worker::*; #[event(fetch)] -pub async fn main(req: Request, env: Env, _ctx: worker::Context) -> Result { +pub async fn main(mut req: Request, env: Env, _ctx: worker::Context) -> Result { console_log!( "{} {}, located at: {:?}, within: {}", req.method().to_string(),