aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-02-01 19:34:10 +0100
committerLoïc Hoguin <[email protected]>2015-02-01 19:34:10 +0100
commit41ac668ac771eb84f21c335810d946c2557acabd (patch)
tree830f29072392d22d360b3e6f187ad702106a3de0 /src
parent7472f14de0fafbe3baddf28cb1e09705a7bb377b (diff)
downloadcowboy-41ac668ac771eb84f21c335810d946c2557acabd.tar.gz
cowboy-41ac668ac771eb84f21c335810d946c2557acabd.tar.bz2
cowboy-41ac668ac771eb84f21c335810d946c2557acabd.zip
Add a test with host ending in a dot in the 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 f3fde32..b806da5 100644
--- a/src/cowboy_router.erl
+++ b/src/cowboy_router.erl
@@ -425,6 +425,8 @@ split_host_test_() ->
[<<"eu">>, <<"ninenines">>, <<"cowboy">>]},
{<<"ninenines.eu">>,
[<<"eu">>, <<"ninenines">>]},
+ {<<"ninenines.eu.">>,
+ [<<"eu">>, <<"ninenines">>]},
{<<"a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z">>,
[<<"z">>, <<"y">>, <<"x">>, <<"w">>, <<"v">>, <<"u">>, <<"t">>,
<<"s">>, <<"r">>, <<"q">>, <<"p">>, <<"o">>, <<"n">>, <<"m">>,