From 391ebc7ce173f4023d3a33ebedce221184e9fccd Mon Sep 17 00:00:00 2001 From: Hitalo Souza Date: Fri, 25 Oct 2024 16:12:03 -0400 Subject: [PATCH] fix: remove body from GET / --- rust/may_minihttp/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/may_minihttp/src/main.rs b/rust/may_minihttp/src/main.rs index 13390690e85..ebcd3b6a093 100644 --- a/rust/may_minihttp/src/main.rs +++ b/rust/may_minihttp/src/main.rs @@ -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") => {