From 6fefc81245612df2d99e37cd1132d38ce6ca76e8 Mon Sep 17 00:00:00 2001 From: itowlson Date: Wed, 4 Oct 2023 09:54:35 +1300 Subject: [PATCH] Replace foobar header with content-type Signed-off-by: itowlson --- templates/http-rust/content/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/http-rust/content/src/lib.rs b/templates/http-rust/content/src/lib.rs index 6e1c9b8bfa..eba5e2737c 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()))?) }