Browse Source

Add a test with host ending in a dot in the router

Loïc Hoguin 10 years ago
parent
commit
41ac668ac7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/cowboy_router.erl

+ 2 - 0
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">>,