diff --git a/eBook/examples/chapter_19/goto_v2/main.go b/eBook/examples/chapter_19/goto_v2/main.go index cecdbc9..dbf5c63 100644 --- a/eBook/examples/chapter_19/goto_v2/main.go +++ b/eBook/examples/chapter_19/goto_v2/main.go @@ -26,6 +26,7 @@ func Redirect(w http.ResponseWriter, r *http.Request) { func Add(w http.ResponseWriter, r *http.Request) { url := r.FormValue("url") if url == "" { + w.Header().Set("Content-Type", "text/html") fmt.Fprint(w, AddForm) return }