mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Add a test for empty path segments
This commit is contained in:
parent
14b45fd8a9
commit
376d5372e1
1 changed files with 2 additions and 0 deletions
|
@ -215,6 +215,8 @@ split_path_test_() ->
|
|||
{<<"?">>, [], <<"">>, <<"">>},
|
||||
{<<"???">>, [], <<"">>, <<"??">>},
|
||||
{<<"/">>, [], <<"/">>, <<"">>},
|
||||
{<<"/extend//cowboy">>, [<<"extend">>, <<>>, <<"cowboy">>],
|
||||
<<"/extend//cowboy">>, <<>>},
|
||||
{<<"/users">>, [<<"users">>], <<"/users">>, <<"">>},
|
||||
{<<"/users?">>, [<<"users">>], <<"/users">>, <<"">>},
|
||||
{<<"/users?a">>, [<<"users">>], <<"/users">>, <<"a">>},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue