From 627fc32cb6d4891d3a04fbcda8d182d9f32ed6fd Mon Sep 17 00:00:00 2001 From: dinever Date: Fri, 29 Apr 2016 17:10:54 -0400 Subject: [PATCH] [fix] Parse Form when creating a new Context. --- context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/context.go b/context.go index 2c9a7b9..1c200c0 100644 --- a/context.go +++ b/context.go @@ -43,6 +43,7 @@ type Context struct { func NewContext(req *http.Request, res http.ResponseWriter, app *Application) *Context { ctx := new(Context) ctx.Request = req + ctx.Request.ParseForm() ctx.Response = res ctx.App = app ctx.statusCode = 200