From 301dcfb6264dad78521481a146b6c46214d36650 Mon Sep 17 00:00:00 2001 From: JessonChan Date: Fri, 8 Apr 2016 14:04:10 +0800 Subject: [PATCH] context xsrf bug fixed --- context/context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/context/context.go b/context/context.go index fee5e1c5..2735a5b3 100644 --- a/context/context.go +++ b/context/context.go @@ -65,6 +65,7 @@ func (ctx *Context) Reset(rw http.ResponseWriter, r *http.Request) { ctx.ResponseWriter.reset(rw) ctx.Input.Reset(ctx) ctx.Output.Reset(ctx) + ctx._xsrfToken = "" } // Redirect does redirection to localurl with http header status code.