Skip to content

Commit

Permalink
cleaner Context#Param
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Nov 17, 2016
1 parent 9918c9b commit 8aa0e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (c *context) SetPath(p string) {
func (c *context) Param(name string) string {
for i, n := range c.pnames {
if i < len(c.pnames) {
if strings.HasPrefix(n, name) {
if n == name {
return c.pvalues[i]
}

Expand Down

0 comments on commit 8aa0e56

Please sign in to comment.