Skip to content

Commit

Permalink
Fixed params should have higher priority than Query
Browse files Browse the repository at this point in the history
  • Loading branch information
mcheng89 committed Feb 13, 2014
1 parent f03f938 commit c96ee2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions params.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ func (p *Params) calcValues() url.Values {

// Copy everything into the same map.
values := make(url.Values, numParams)
for k, v := range p.Query {
for k, v := range p.Fixed {
values[k] = append(values[k], v...)
}
for k, v := range p.Fixed {
for k, v := range p.Query {
values[k] = append(values[k], v...)
}
for k, v := range p.Route {
Expand Down

0 comments on commit c96ee2c

Please sign in to comment.