aboutsummaryrefslogtreecommitdiffstats
path: root/modules/context/private.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context/private.go')
-rw-r--r--modules/context/private.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/context/private.go b/modules/context/private.go
index b57ba102e6..fdc7751227 100644
--- a/modules/context/private.go
+++ b/modules/context/private.go
@@ -66,6 +66,8 @@ func PrivateContexter() func(http.Handler) http.Handler {
Data: map[string]interface{}{},
},
}
+ defer ctx.Close()
+
ctx.Req = WithPrivateContext(req, ctx)
ctx.Data["Context"] = ctx
next.ServeHTTP(ctx.Resp, ctx.Req)