Added ParseForm to handler

This commit is contained in:
2017-08-07 22:33:16 +02:00
parent fd8a1d786b
commit 411a95685e
+1
View File
@@ -28,6 +28,7 @@ func (router *Router) Route(path string, route Route) {
} }
func (router *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { func (router *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {
req.ParseForm()
defer req.Body.Close() defer req.Body.Close()
// Allow REST for clients of yore // Allow REST for clients of yore