Permalink
Browse files

Fixed Route params should be set, not added to Params

  • Loading branch information...
1 parent 8bcdde9 commit e2cc0c96de299d5384c07d6be78723b93d6b9682 @robfig committed Mar 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.go
View
@@ -81,7 +81,7 @@ func handleInternal(w http.ResponseWriter, r *http.Request, ws *websocket.Conn)
for i, value := range route.FixedParams {
if i < len(controller.MethodType.Args) {
arg := controller.MethodType.Args[i]
- controller.Params.Values.Add(arg.Name, value)
+ controller.Params.Values.Set(arg.Name, value)
} else {
WARN.Println("Too many parameters to", route.Action, "trying to add", value)
break

0 comments on commit e2cc0c9

Please sign in to comment.