File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,15 +262,15 @@ func (ctx *Context) Params(name string) string {
262262
263263// SetParams sets value of param with given name.
264264func (ctx * Context ) SetParams (name , val string ) {
265- if ! strings .HasPrefix (name , ":" ) {
265+ if name != "*" && ! strings .HasPrefix (name , ":" ) {
266266 name = ":" + name
267267 }
268268 ctx .params [name ] = val
269269}
270270
271271// ReplaceAllParams replace all current params with given params
272272func (ctx * Context ) ReplaceAllParams (params Params ) {
273- ctx .params = params ;
273+ ctx .params = params
274274}
275275
276276// ParamsEscape returns escapred params result.
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import (
3232 "github.com/go-macaron/inject"
3333)
3434
35- const _VERSION = "1.3.1.0306 "
35+ const _VERSION = "1.3.2.1216 "
3636
3737func Version () string {
3838 return _VERSION
You can’t perform that action at this time.
0 commit comments