enable prefix matching within slash boundaries
This commit is contained in:
parent
5a578c5375
commit
fd70e6edb1
2 changed files with 9 additions and 9 deletions
|
@ -86,6 +86,14 @@ func TestStripPrefix(t *testing.T) {
|
|||
expectedPath: "/",
|
||||
expectedHeader: "/stat",
|
||||
},
|
||||
{
|
||||
desc: "prefix matching within slash boundaries",
|
||||
prefixes: []string{"/stat"},
|
||||
path: "/status",
|
||||
expectedStatusCode: http.StatusOK,
|
||||
expectedPath: "/us",
|
||||
expectedHeader: "/stat",
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue