From ce50369ac7e53972be35ae29480967ae5081f1e8 Mon Sep 17 00:00:00 2001 From: Vladimir Zagainov Date: Sun, 23 Mar 2025 00:09:03 +0300 Subject: [PATCH] fixed `go test` command --- teapot-server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teapot-server.go b/teapot-server.go index 7415ccc..d0cddc2 100644 --- a/teapot-server.go +++ b/teapot-server.go @@ -18,8 +18,8 @@ func handler(w http.ResponseWriter, r *http.Request) { } // Write the content to the response writer - w.WriteHeader(http.StatusTeapot) // Set the 418 status code - fmt.Fprintf(w, string(content)) //Write the entire content as a string + w.WriteHeader(http.StatusTeapot) // Set the 418 status code + fmt.Fprintf(w, "%s", string(content)) //Write the entire content as a string } func main() {