aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-14 16:42:46 +0100
committerLoïc Hoguin <[email protected]>2018-11-14 18:04:32 +0100
commitf0cae8dbcf8d07035be069860fc4b22f7577d154 (patch)
treeed5cbc2b8a39a7a385b4c17c77e6f8b39b3f6461 /src
parentc65e3ff20e0cf64c574d98550c2a88527dde49ce (diff)
downloadcowboy-f0cae8dbcf8d07035be069860fc4b22f7577d154.tar.gz
cowboy-f0cae8dbcf8d07035be069860fc4b22f7577d154.tar.bz2
cowboy-f0cae8dbcf8d07035be069860fc4b22f7577d154.zip
Document some undefined behavior in cowboy_router
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_router.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_router.erl b/src/cowboy_router.erl
index 754e3e7..44a7e18 100644
--- a/src/cowboy_router.erl
+++ b/src/cowboy_router.erl
@@ -428,6 +428,8 @@ compile_test_() ->
{[<<"horses">>], [], h, o},
{[<<"hats">>], [], h, o},
{[<<"hats">>, <<"page">>, number], [], h, o}]}]},
+ {[{'_', [{"/hats/:page/:number", h, o}]}], [{'_', [], [
+ {[<<"hats">>, page, number], [], h, o}]}]},
{[{'_', [{"/hats/[page/[:number]]", h, o}]}], [{'_', [], [
{[<<"hats">>], [], h, o},
{[<<"hats">>, <<"page">>], [], h, o},