aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-06-28 18:57:51 +0200
committerLoïc Hoguin <[email protected]>2017-06-28 18:57:51 +0200
commiteb1a06cf5d50e4fbb3d51eb623c9c09e2f4ac3a2 (patch)
tree02efbc4bdce3cef7a3d1f913976322aa77dff43f
parent12b5e78aaae53a9327ba760b2dbaa45f410c8604 (diff)
downloadcowboy-eb1a06cf5d50e4fbb3d51eb623c9c09e2f4ac3a2.tar.gz
cowboy-eb1a06cf5d50e4fbb3d51eb623c9c09e2f4ac3a2.tar.bz2
cowboy-eb1a06cf5d50e4fbb3d51eb623c9c09e2f4ac3a2.zip
Remove the cyrillic latin1 test
These characters are not allowed in URI paths.
-rw-r--r--src/cowboy_router.erl10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/cowboy_router.erl b/src/cowboy_router.erl
index b27778f..b47f403 100644
--- a/src/cowboy_router.erl
+++ b/src/cowboy_router.erl
@@ -517,10 +517,6 @@ match_info_test_() ->
]},
{[<<"eu">>, <<"ninenines">>, '...'], [], [
{'_', [], match_any, []}
- ]},
- % Cyrillic from a latin1 encoded file.
- {[<<209,128,209,132>>, <<209,129,208,176,208,185,209,130>>], [], [
- {[<<208,191,209,131,209,130,209,140>>, '...'], [], match_path, []}
]}
],
Tests = [
@@ -535,11 +531,7 @@ match_info_test_() ->
{<<"www.ninenines.eu">>, <<"/pathinfo/is/next/path_info">>,
{ok, match_path, [], #{}, undefined, [<<"path_info">>]}},
{<<"www.ninenines.eu">>, <<"/pathinfo/is/next/foo/bar">>,
- {ok, match_path, [], #{}, undefined, [<<"foo">>, <<"bar">>]}},
- % Cyrillic from a latin1 encoded file.
- {<<209,129,208,176,208,185,209,130,46,209,128,209,132>>,
- <<47,208,191,209,131,209,130,209,140,47,208,180,208,190,208,188,208,190,208,185>>,
- {ok, match_path, [], #{}, undefined, [<<208,180,208,190,208,188,208,190,208,185>>]}}
+ {ok, match_path, [], #{}, undefined, [<<"foo">>, <<"bar">>]}}
],
[{lists:flatten(io_lib:format("~p, ~p", [H, P])), fun() ->
R = match(Dispatch, H, P)