Skip to content

Commit

Permalink
go-aah#160 adapting to new router updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Aug 18, 2018
1 parent e684d24 commit 5654229
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ func (ctx *Context) createParams() url.Values {
for _, priority := range ctx.a.bindMgr.autobindPriority {
switch priority {
case "P": // Path Values
for k, v := range ctx.Req.PathParams {
params.Set(k, v)
for _, p := range ctx.Req.URLParams {
params.Set(p.Key, p.Value)
}
case "F": // Form Values
for k, v := range ctx.Req.Unwrap().Form {
Expand Down
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func handleRoute(ctx *Context) flowResult {
return flowAbort
}
ctx.route = route
ctx.Req.PathParams = pathParams
ctx.Req.URLParams = pathParams

// Serving static file
if route.IsStatic {
Expand Down

0 comments on commit 5654229

Please sign in to comment.