fixed go test command
This commit is contained in:
@@ -18,8 +18,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Write the content to the response writer
|
// Write the content to the response writer
|
||||||
w.WriteHeader(http.StatusTeapot) // Set the 418 status code
|
w.WriteHeader(http.StatusTeapot) // Set the 418 status code
|
||||||
fmt.Fprintf(w, string(content)) //Write the entire content as a string
|
fmt.Fprintf(w, "%s", string(content)) //Write the entire content as a string
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user