diff options
author | E. Westbrook <github@westbrook.io> | 2018-08-21 10:43:04 -0600 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2018-08-21 10:43:04 -0600 |
commit | 5b862e6a3c79b8e336a0ac2f0d23ca69993b326d (patch) | |
tree | fcd0f439eb2a626ebd333917ac62c2df70470dc3 /test | |
parent | 7ccea58776b8084f29a48610cb44b17ca604e4b5 (diff) | |
download | luasocket-5b862e6a3c79b8e336a0ac2f0d23ca69993b326d.tar.gz luasocket-5b862e6a3c79b8e336a0ac2f0d23ca69993b326d.tar.bz2 luasocket-5b862e6a3c79b8e336a0ac2f0d23ca69993b326d.zip |
url.lua:absolute_path(): ensure a separator between base_path and relative_path
Diffstat (limited to 'test')
-rw-r--r-- | test/urltest.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/urltest.lua b/test/urltest.lua index 04b3c7f..b6ee299 100644 --- a/test/urltest.lua +++ b/test/urltest.lua | |||
@@ -690,7 +690,7 @@ check_absolute_url("http://example.com/", "...badhost.com/", "http://example.com | |||
690 | check_absolute_url("http://example.com/a/b/c/d/", "../q", "http://example.com/a/b/c/q") | 690 | check_absolute_url("http://example.com/a/b/c/d/", "../q", "http://example.com/a/b/c/q") |
691 | check_absolute_url("http://example.com/a/b/c/d/", "../../q", "http://example.com/a/b/q") | 691 | check_absolute_url("http://example.com/a/b/c/d/", "../../q", "http://example.com/a/b/q") |
692 | check_absolute_url("http://example.com/a/b/c/d/", "../../../q", "http://example.com/a/q") | 692 | check_absolute_url("http://example.com/a/b/c/d/", "../../../q", "http://example.com/a/q") |
693 | check_absolute_url("http://example.com/a/b/c/d/", "../../../../q", "http://example.com/q") | 693 | check_absolute_url("http://example.com", ".badhost.com", "http://example.com/.badhost.com") |
694 | 694 | ||
695 | print("testing path parsing and composition") | 695 | print("testing path parsing and composition") |
696 | check_parse_path("/eu/tu/ele", { "eu", "tu", "ele"; is_absolute = 1 }) | 696 | check_parse_path("/eu/tu/ele", { "eu", "tu", "ele"; is_absolute = 1 }) |