Skip to content

Commit 452640d

Browse files
committed
doc: ngx.var: named more readonly nginx builtin variables, as per adamonduty's request in #440.
1 parent b3a3e5e commit 452640d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2550,7 +2550,7 @@ For example:
25502550
That is, nginx variables cannot be created on-the-fly.
25512551

25522552
Some special nginx variables like `$args` and `$limit_rate` can be assigned a value,
2553-
some are not, like `$arg_PARAMETER`.
2553+
many others are not, like `$query_string`, `$arg_PARAMETER`, and `$http_NAME`.
25542554

25552555
Nginx regex group capturing variables `$1`, `$2`, `$3`, and etc, can be read by this
25562556
interface as well, by writing `ngx.var[1]`, `ngx.var[2]`, `ngx.var[3]`, and etc.

doc/HttpLuaModule.wiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,7 @@ For example:
20272027
That is, nginx variables cannot be created on-the-fly.
20282028
20292029
Some special nginx variables like <code>$args</code> and <code>$limit_rate</code> can be assigned a value,
2030-
some are not, like <code>$arg_PARAMETER</code>.
2030+
many others are not, like <code>$query_string</code>, <code>$arg_PARAMETER</code>, and <code>$http_NAME</code>.
20312031
20322032
Nginx regex group capturing variables <code>$1</code>, <code>$2</code>, <code>$3</code>, and etc, can be read by this
20332033
interface as well, by writing <code>ngx.var[1]</code>, <code>ngx.var[2]</code>, <code>ngx.var[3]</code>, and etc.

0 commit comments

Comments
 (0)