update the filter for URL

This commit is contained in:
astaxie 2014-06-23 23:10:17 +08:00
parent 620f052d93
commit 763382e4ce
1 changed files with 2 additions and 1 deletions

View File

@ -77,12 +77,13 @@ func urlReplace(src string) string {
if len(p) > 0 { if len(p) > 0 {
if p[0] == ':' { if p[0] == ':' {
pt[i] = "{" + p[1:] + "}" pt[i] = "{" + p[1:] + "}"
} else if p[0] == "?" && p[1] == ":" {
pt[i] = "{" + p[2:] + "}"
} }
} }
} }
return strings.Join(pt, "/") return strings.Join(pt, "/")
} }
` `
const ( const (