From 2948f20eddc4093c9da8c7ab18e7e6e8a9713e62 Mon Sep 17 00:00:00 2001 From: maxupeng Date: Tue, 4 Dec 2012 16:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A1=A8=E5=8D=95=E8=A7=A3?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 4.1.md | 1 + 1 file changed, 1 insertion(+) diff --git a/4.1.md b/4.1.md index 956de5ef..f855e196 100644 --- a/4.1.md +++ b/4.1.md @@ -45,6 +45,7 @@ http包里面有一个很简单的方式就可以获取,我们在前面web的 } func login(w http.ResponseWriter, r *http.Request) { + r.ParseForm() fmt.Println("method:", r.Method) //获取请求的方法 if r.Method == "GET" { t, _ := template.ParseFiles("login.gtpl")