From: Anton Yuzhaninov Date: Tue, 14 Jan 2020 16:31:13 +0000 (+0000) Subject: [Test] Add a test case for URL parsing X-Git-Tag: 2.3~105^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f40aecdce758d3dd54fee89a39090482243c415f;p=rspamd.git [Test] Add a test case for URL parsing Currently it fails because fragment is not extracted correctly. --- 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' }},