Skip to content
Browse files

Add a test for empty path segments

  • Loading branch information...
1 parent 14b45fd commit 376d5372e1fd7e92cde44a0d6551216ad1060e59 Loïc Hoguin committed May 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/cowboy_dispatcher.erl
View
2 src/cowboy_dispatcher.erl
@@ -215,6 +215,8 @@ split_path_test_() ->
{<<"?">>, [], <<"">>, <<"">>},
{<<"???">>, [], <<"">>, <<"??">>},
{<<"/">>, [], <<"/">>, <<"">>},
+ {<<"/extend//cowboy">>, [<<"extend">>, <<>>, <<"cowboy">>],
+ <<"/extend//cowboy">>, <<>>},
{<<"/users">>, [<<"users">>], <<"/users">>, <<"">>},
{<<"/users?">>, [<<"users">>], <<"/users">>, <<"">>},
{<<"/users?a">>, [<<"users">>], <<"/users">>, <<"a">>},

0 comments on commit 376d537

Please sign in to comment.
Something went wrong with that request. Please try again.