aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_router.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cowboy_router.erl b/src/cowboy_router.erl
index 92ecf25..754e3e7 100644
--- a/src/cowboy_router.erl
+++ b/src/cowboy_router.erl
@@ -434,7 +434,10 @@ compile_test_() ->
{[<<"hats">>, <<"page">>, number], [], h, o}]}]},
{[{"[...]ninenines.eu", [{"/hats/[...]", h, o}]}],
[{[<<"eu">>, <<"ninenines">>, '...'], [], [
- {[<<"hats">>, '...'], [], h, o}]}]}
+ {[<<"hats">>, '...'], [], h, o}]}]},
+ %% Path segment containing a colon.
+ {[{'_', [{"/foo/bar:blah", h, o}]}], [{'_', [], [
+ {[<<"foo">>, <<"bar:blah">>], [], h, o}]}]}
],
[{lists:flatten(io_lib:format("~p", [Rt])),
fun() -> Rs = compile(Rt) end} || {Rt, Rs} <- Tests].