docs: typo fixes in the code sample for body_filter_by_lua. thanks cyberty for reporting this issue as #261.
This commit is contained in:
Родитель
fe467e52bc
Коммит
8708f604f5
2
README
2
README
|
@ -938,7 +938,7 @@ Directives
|
|||
# fastcgi_pass/proxy_pass/...
|
||||
|
||||
header_filter_by_lua 'ngx.header.content_length = nil';
|
||||
body_filter_by_lua 'ngx.arg[1] = {string.len(arg[1]), "\n"}'
|
||||
body_filter_by_lua 'ngx.arg[1] = string.len(ngx.arg[1]) .. "\\n"';
|
||||
}
|
||||
|
||||
Note that the following API functions are currently disabled within this
|
||||
|
|
|
@ -832,7 +832,7 @@ When the Lua code may change the length of the response body, then it is require
|
|||
# fastcgi_pass/proxy_pass/...
|
||||
|
||||
header_filter_by_lua 'ngx.header.content_length = nil';
|
||||
body_filter_by_lua 'ngx.arg[1] = {string.len(arg[1]), "\n"}'
|
||||
body_filter_by_lua 'ngx.arg[1] = string.len(ngx.arg[1]) .. "\\n"';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -804,7 +804,7 @@ When the Lua code may change the length of the response body, then it is require
|
|||
# fastcgi_pass/proxy_pass/...
|
||||
|
||||
header_filter_by_lua 'ngx.header.content_length = nil';
|
||||
body_filter_by_lua 'ngx.arg[1] = {string.len(arg[1]), "\n"}'
|
||||
body_filter_by_lua 'ngx.arg[1] = string.len(ngx.arg[1]) .. "\\n"';
|
||||
}
|
||||
</geshi>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче