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() {