Skip to content

Commit 3020a6e

Browse files
fesilysumneko
authored andcommitted
fix ngx doc error
1 parent 92d2cfe commit 3020a6e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

meta/3rd/OpenResty/library/ngx.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@ function ngx.req.get_post_args(max_args) end
21342134
---
21352135
--- Removing the `max_args` cap is strongly discouraged.
21362136
---
2137-
---@param max_args number
2137+
---@param max_args? number
21382138
---@return table args
21392139
---@return string|'"truncated"' error
21402140
function ngx.req.get_uri_args(max_args) end
@@ -2438,8 +2438,8 @@ function ngx.req.clear_header(header_name) end
24382438
---
24392439
--- The `__index` metamethod will not be added when the `raw` argument is set to `true`.
24402440
---
2441-
---@param max_headers number
2442-
---@param raw boolean
2441+
---@param max_headers? number
2442+
---@param raw? boolean
24432443
---@return table<string, string|string[]> headers
24442444
---@return string|'"truncated"' error
24452445
function ngx.req.get_headers(max_headers, raw) end
@@ -4211,8 +4211,8 @@ ngx.resp = {}
42114211
---
42124212
--- Note that a maximum of 100 response headers are parsed by default (including those with the same name) and that additional response headers are silently discarded to guard against potential denial of service attacks. When the limit is exceeded, it will return a second value which is the string `"truncated"`.
42134213
---
4214-
---@param max_headers number
4215-
---@param raw boolean
4214+
---@param max_headers? number
4215+
---@param raw? boolean
42164216
---@return table<string, string|string[]>
42174217
---@return string|'"truncated"' error
42184218
function ngx.resp.get_headers(max_headers, raw) end

0 commit comments

Comments
 (0)