Skip to content

Commit

Permalink
compatible with pongo2 identifier validate
Browse files Browse the repository at this point in the history
  • Loading branch information
micate committed Aug 12, 2016
1 parent a638156 commit 817ccd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 817ccd0

Please sign in to comment.