diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-10 13:32:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-10 13:32:02 +0100 |
commit | 0f36dc9a5582091fed54bb2f790b629d8737141e (patch) | |
tree | 2cb2d8253e9db7fff798994c6896e372f4082e63 /test | |
parent | d029c2a4004b91c87482e7c5b2e96b93179ddb56 (diff) | |
download | rspamd-0f36dc9a5582091fed54bb2f790b629d8737141e.tar.gz rspamd-0f36dc9a5582091fed54bb2f790b629d8737141e.zip |
[Minor] Treat last dot specially
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/url.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua index e2daa7771..52b88d25a 100644 --- a/test/lua/unit/url.lua +++ b/test/lua/unit/url.lua @@ -148,6 +148,16 @@ context("URL check functions", function() host = "63.143.41.164", path = "pro/au.html", } }, + { + "http://localhost", true, { + host = "localhost", + tld = "localhost", + } }, + { + "http://localhost.", true, { + host = "localhost.", + tld = "localhost", + } }, } -- Some cases from https://code.google.com/p/google-url/source/browse/trunk/src/url_canon_unittest.cc |