mirror of
https://github.com/labstack/echo.git
synced 2026-05-16 09:48:24 +02:00
allow whitespace in regex
This commit is contained in:
committed by
Vishal Rana
parent
5ac8bedce8
commit
56091a4186
@@ -32,6 +32,9 @@ func TestRewrite(t *testing.T) {
|
||||
req.URL.Path = "/users/jack/orders/1"
|
||||
e.ServeHTTP(rec, req)
|
||||
assert.Equal(t, "/user/jack/order/1", req.URL.Path)
|
||||
req.URL.Path = "/api/new users"
|
||||
e.ServeHTTP(rec, req)
|
||||
assert.Equal(t, "/new users", req.URL.Path)
|
||||
}
|
||||
|
||||
// Issue #1086
|
||||
|
||||
Reference in New Issue
Block a user