mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
update the filter for URL
This commit is contained in:
parent
620f052d93
commit
763382e4ce
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user