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:
Yichun Zhang (agentzh) 2013-07-15 12:30:31 -07:00
Родитель fe467e52bc
Коммит 8708f604f5
3 изменённых файлов: 3 добавлений и 3 удалений

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>