Skip to content

Commit

Permalink
Replace foobar header with content-type
Browse files Browse the repository at this point in the history
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
  • Loading branch information
itowlson committed Oct 3, 2023
1 parent cff70af commit 6fefc81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/http-rust/content/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ fn handle_{{project-name | snake_case}}(req: Request) -> Result<Response> {
println!("{:?}", req.headers());
Ok(http::Response::builder()
.status(200)
.header("foo", "bar")
.header("content-type", "text/plain")
.body(Some("Hello, Fermyon".into()))?)
}

0 comments on commit 6fefc81

Please # to comment.