Skip to content

Commit

Permalink
should copy the data direct. don't need range
Browse files Browse the repository at this point in the history
  • Loading branch information
asta.xie committed Feb 8, 2014
1 parent c425087 commit 1b77850
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ func (c *Controller) Init(ctx *context.Context, controllerName, actionName strin
c.TplExt = "tpl"
c.AppController = app
c.EnableReander = true
for k, v := range ctx.Input.Data {
c.Data[k] = v
}
c.Data = ctx.Input.Data
}

// Prepare runs after Init before request function execution.
Expand Down

0 comments on commit 1b77850

Please sign in to comment.