Added ParseForm to handler
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user