diff options
author | Loïc Hoguin <[email protected]> | 2018-05-17 17:53:16 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-05-17 17:53:16 +0200 |
commit | fb5a261614652e83d5c2b3a7e8bb0561ebc9a331 (patch) | |
tree | 629b65c458c3f697d68e14c788f01be12cf9639d /src | |
parent | 0254c80c334b6fce03bb971d0323f97cdba20b13 (diff) | |
download | cowboy-fb5a261614652e83d5c2b3a7e8bb0561ebc9a331.tar.gz cowboy-fb5a261614652e83d5c2b3a7e8bb0561ebc9a331.tar.bz2 cowboy-fb5a261614652e83d5c2b3a7e8bb0561ebc9a331.zip |
Move a router test from old_http_SUITE to cowboy_router
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_router.erl | 5 |
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]. |