summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-31 15:48:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-31 15:48:24 +0100
commitfb3cfd2368694af6d4c1c15efd11f4798c015219 (patch)
tree0ce0641f70179af8479f631226a572002793a515 /test
parentfc5ca304fb909ea3cbfb8f201979a3da388e2e21 (diff)
downloadrspamd-fb3cfd2368694af6d4c1c15efd11f4798c015219.tar.gz
rspamd-fb3cfd2368694af6d4c1c15efd11f4798c015219.zip
[Fix] Avoid one extra byte writing
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/url.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua
index ccde222f8..902744c2e 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -95,6 +95,9 @@ context("URL check functions", function()
{"http://twitter.com#test", true, {
host = 'twitter.com', fragment = 'test'
}},
+ {"http:www.twitter.com#test", true, {
+ host = 'www.twitter.com', fragment = 'test'
+ }},
}
-- Some cases from https://code.google.com/p/google-url/source/browse/trunk/src/url_canon_unittest.cc