diff --git a/templates/http-rust/content/src/lib.rs b/templates/http-rust/content/src/lib.rs index 6e1c9b8bf..eba5e2737 100644 --- a/templates/http-rust/content/src/lib.rs +++ b/templates/http-rust/content/src/lib.rs @@ -10,6 +10,6 @@ fn handle_{{project-name | snake_case}}(req: Request) -> Result { println!("{:?}", req.headers()); Ok(http::Response::builder() .status(200) - .header("foo", "bar") + .header("content-type", "text/plain") .body(Some("Hello, Fermyon".into()))?) }