From c7fdc2e03a4b6a015a4f6d646c13f2599f719080 Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Fri, 18 Jul 2014 00:29:20 +0200 Subject: [PATCH] Errors in context are removed --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 01a053f4..17ba45c2 100644 --- a/context.go +++ b/context.go @@ -72,12 +72,12 @@ type Context struct { func (engine *Engine) createContext(w http.ResponseWriter, req *http.Request, params httprouter.Params, handlers []HandlerFunc) *Context { c := engine.cache.Get().(*Context) c.writermem.reset(w) - c.Request = req c.Params = params c.handlers = handlers c.Keys = nil c.index = -1 + c.Errors = c.Errors[0:0] return c }