|
@ -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
|
|
|