Skip to content

Commit

Permalink
Merge pull request #1843 from itowlson/foo-bar-exterminate
Browse files Browse the repository at this point in the history
Replace foo-bar header with content-type
  • Loading branch information
itowlson authored Oct 3, 2023
2 parents b4c54ca + 6fefc81 commit 447ff57
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 447ff57

Please sign in to comment.