1
0
Fork 0

enable prefix matching within slash boundaries

This commit is contained in:
Marco Jantke 2017-10-06 11:34:03 +02:00 committed by Traefiker
parent 5a578c5375
commit fd70e6edb1
2 changed files with 9 additions and 9 deletions

View file

@ -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 {