[nginx-tests] Tests: slightly improved set with captures test.
Maxim Dounin
mdounin at mdounin.ru
Fri Jun 19 20:41:44 UTC 2026
details: http://freenginx.org/hg/nginx-tests/rev/08e59839a77b
branches:
changeset: 2069:08e59839a77b
user: Maxim Dounin <mdounin at mdounin.ru>
date: Fri Jun 19 22:57:01 2026 +0300
description:
Tests: slightly improved set with captures test.
diffstat:
rewrite_set.t | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff --git a/rewrite_set.t b/rewrite_set.t
--- a/rewrite_set.t
+++ b/rewrite_set.t
@@ -56,8 +56,8 @@ http {
}
location /if/ {
- if ($uri ~ "(.*)") {
- set $temp "set_$1";
+ if ($uri ~ "(/if/)(.*)") {
+ set $temp "set_$1$2";
}
return 200 "X${temp}X";
}
More information about the nginx-devel
mailing list