mirror of
https://github.com/gin-gonic/gin.git
synced 2026-06-04 01:38:12 +08:00
test: add more tests for escaped colon routes
This commit is contained in:
parent
4f89cd5dbd
commit
a3f315d038
@ -1025,6 +1025,7 @@ func TestTreeEscapedColon(t *testing.T) {
|
|||||||
"/api/:resource\\:method": true,
|
"/api/:resource\\:method": true,
|
||||||
"/escape/\\:static": true,
|
"/escape/\\:static": true,
|
||||||
"/invalid/\\x": false,
|
"/invalid/\\x": false,
|
||||||
|
"/invalid/:id\\a": false,
|
||||||
}
|
}
|
||||||
|
|
||||||
for route, valid := range routes {
|
for route, valid := range routes {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user