1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 09:50:55 +00:00

update the filter for URL

This commit is contained in:
astaxie 2014-06-23 23:10:17 +08:00
parent 620f052d93
commit 763382e4ce

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 (