diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-04-05 19:34:52 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-04-08 06:33:02 -0400 |
commit | 63beba3a4c23936f0ed78210d4442d4f3810896a (patch) | |
tree | 45b5ab17e0cb8f02fd6b4514920844df5937e31f /tests/core-condition.t | |
parent | 7258624e51b4bdb1b79f19f6c31ca7814cabcee1 (diff) | |
download | lighttpd-git-63beba3a4c23936f0ed78210d4442d4f3810896a.tar.gz |
[core] allow redirect,rewrite ext subst w/o pcre
allow redirect and rewrite extended substitution when lighttpd is built
without pcre. When built without pcre, url.rewrite and url.redirect
always match first list entry as if it were "", and numerical
substitutions ($0 %0 $1 %1 etc) are always ignored, but other extended
substitutions (e.g. ${url.path}) may still occur.
Diffstat (limited to 'tests/core-condition.t')
-rwxr-xr-x | tests/core-condition.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/core-condition.t b/tests/core-condition.t index 652135c3..0506e6b1 100755 --- a/tests/core-condition.t +++ b/tests/core-condition.t @@ -21,9 +21,6 @@ $ENV{"env_test"} = "good_env"; $tf->{CONFIGFILE} = 'condition.conf'; ok($tf->start_proc == 0, "Starting lighttpd") or die(); -SKIP: { - skip "skipping tests requiring PCRE", 24 unless $has_pcre; - $t->{REQUEST} = ( <<EOF GET /index.html HTTP/1.0 Host: www.example.org @@ -93,6 +90,9 @@ $t->{REQUEST} = ( "GET /index.html HTTP/1.0\r\nHost: www.example.org\r\n" ); $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => "/match_1" } ]; ok($tf->handle_http($t) == 0, 'basic test'); +SKIP: { + skip "skipping tests requiring PCRE", 15 unless $has_pcre; + $t->{REQUEST} = ( <<EOF GET /rewrite/all/some+test%3axxx%20with%20space HTTP/1.0 Host: test.example.org |