Skip to content

Commit

Permalink
fix: remove body from GET /
Browse files Browse the repository at this point in the history
  • Loading branch information
enghitalo committed Oct 25, 2024
1 parent cc29878 commit 391ebc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/may_minihttp/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl HttpService for WebFramework {

match (method, path) {
("GET", "/") => {
rsp.header("Content-Type: text/plain").body("Hello, World!");
rsp.header("Content-Type: text/plain");
}

(method_, path_) if path_.starts_with("/user") => {
Expand Down

0 comments on commit 391ebc7

Please sign in to comment.