From fa6de9d8b18e76259f05df772f6ede2b78da7a13 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 30 Jun 2023 12:56:47 +0200 Subject: [PATCH] regression-tests.action: Add a redirect{} test with a pcrs command --- regression-tests.action | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/regression-tests.action b/regression-tests.action index 939596a8..84467c97 100644 --- a/regression-tests.action +++ b/regression-tests.action @@ -1141,6 +1141,11 @@ redirect.example.net/ # Redirect Destination = http://redirected.example.net/¶meter1=part-of-the-redirected-url1¶meter2=part-of-the-redirected-url1 redirect2.example.net/ +# Redirected URL = http://redirect3.example.net/01-02-03-04-05-06-07-08-09 +# Redirect Destination = http://redirect3.example.net/09-08-07-06-05-04-03-02-01 +{+redirect{s@/(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)@/$9-$8-$7-$6-$5-$4-$3-$2-$1@}} +redirect3.example.net/01-02-03-04-05-06-07-08-09 + {+delay-response{1}} # Fetch Test = http://config.privoxy.org/show-url-info?url=http%3A%2F%2Fwww.example.com%2Fprivoxy-test-delay-response config.privoxy.org/show-url-info\?url=http%3A%2F%2Fwww\.example\.com%2Fprivoxy-test-delay-response -- 2.39.2