aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/unit/url.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-15 10:55:23 +0000
committerGitHub <noreply@github.com>2020-01-15 10:55:23 +0000
commit5d6f92884a1264d4080b00994090508189e2ead8 (patch)
treebadc1d6fc0e409934863b637a51818b1791705ec /test/lua/unit/url.lua
parent905507145aebb2670046ff85741ad0e65c28884a (diff)
parentf40aecdce758d3dd54fee89a39090482243c415f (diff)
downloadrspamd-5d6f92884a1264d4080b00994090508189e2ead8.tar.gz
rspamd-5d6f92884a1264d4080b00994090508189e2ead8.zip
Merge pull request #3213 from citrin/url-frag-test
[Test] Add a test case for URL parsing
Diffstat (limited to 'test/lua/unit/url.lua')
-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 894c3156e..e4baf5b6d 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -56,6 +56,9 @@ context("URL check functions", function()
end
cases = {
+ {'http://example.net/?arg=%23#fragment', true, {
+ host = 'example.net', fragment = 'fragment'
+ }},
{"http:/\\[::eeee:192.168.0.1]/#test", true, {
host = '::eeee:c0a8:1', fragment = 'test'
}},