[PATCH 1 of 4] Tests: slightly improved set with captures test
Maxim Dounin
mdounin at mdounin.ru
Mon Jun 8 17:46:39 UTC 2026
# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1780936526 -10800
# Mon Jun 08 19:35:26 2026 +0300
# Node ID 29d3b09bcce5c912235a0552db2cb1a3c1996881
# Parent bad0e9744aa37ad6c217b8970e4037624b7514a0
Tests: slightly improved set with captures test.
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