Thank you very much for your help.
Brad, you were right that I shouldn't ignore the error.
This was my code:
func handleSignup(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "handle signup")
hah, err := ioutil.ReadAll(r.Body);
if err != nil {
fmt.Fprintf(w, "%s", err)
}
fmt.Fprintf(w,"%s",hah)
}
I found that the err says : invalid Read on closed request Body.
After searching, I found an old post:
The reason for my issue is that, I shouldn't print to the http writer first. Because if I do that, the http request is closed. So I can't read anything from it.
Thank you for the help!