From 817ccd03d0ace94b3d7cd682a2c2f26f467a2fa3 Mon Sep 17 00:00:00 2001 From: micate Date: Fri, 12 Aug 2016 18:55:32 +0800 Subject: [PATCH] compatible with pongo2 identifier validate --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 9b685d8..772c7d8 100644 --- a/context.go +++ b/context.go @@ -492,7 +492,7 @@ func (c *Context) Redirect(code int, url string) error { func (c *Context) RemoteAddr() string { var addr string var key string - key = "_def:remoteAddr" + key = "__ctx_remoteAddr" if addr, ok := c.Get(key).(string); ok { return addr }