diff options
author | Loïc Hoguin <[email protected]> | 2012-05-05 05:12:57 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-05-05 05:12:57 +0200 |
commit | 376d5372e1fd7e92cde44a0d6551216ad1060e59 (patch) | |
tree | 4786a459a86565e4352e39ec89a0b00971e832cf /src | |
parent | 14b45fd8a91b8659a001559f5d84bf19611ee5d4 (diff) | |
download | cowboy-376d5372e1fd7e92cde44a0d6551216ad1060e59.tar.gz cowboy-376d5372e1fd7e92cde44a0d6551216ad1060e59.tar.bz2 cowboy-376d5372e1fd7e92cde44a0d6551216ad1060e59.zip |
Add a test for empty path segments
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_dispatcher.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_dispatcher.erl b/src/cowboy_dispatcher.erl index db40e63..6de8b49 100644 --- a/src/cowboy_dispatcher.erl +++ b/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">>}, |