Mercurial > hg > nginx-site
changeset 2413:c6581f9aefa3
Documented Perl $r->internal_redirect() fixes.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 07 Aug 2019 21:04:14 +0300 |
parents | bd026d5898b8 |
children | 3b7223f9aac8 |
files | xml/en/docs/http/ngx_http_perl_module.xml xml/ru/docs/http/ngx_http_perl_module.xml |
diffstat | 2 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_perl_module.xml +++ b/xml/en/docs/http/ngx_http_perl_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_perl_module" link="/en/docs/http/ngx_http_perl_module.html" lang="en" - rev="6"> + rev="7"> <section id="summary"> @@ -304,14 +304,15 @@ the client. sets a value for the specified response header field. </tag-desc> -<tag-name> +<tag-name id="r_internal_redirect"> <literal>$r->internal_redirect(<value>uri</value>)</literal> </tag-name> <tag-desc> does an internal redirect to the specified <value>uri</value>. An actual redirect happens after the Perl handler execution is completed. <note> -Redirections to named locations are currently not supported. +Since version 1.17.2, the method accepts escaped URIs and +supports redirections to named locations. </note> </tag-desc>
--- a/xml/ru/docs/http/ngx_http_perl_module.xml +++ b/xml/ru/docs/http/ngx_http_perl_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_perl_module" link="/ru/docs/http/ngx_http_perl_module.html" lang="ru" - rev="6"> + rev="7"> <section id="summary"> @@ -304,14 +304,15 @@ 1; устанавливает значение для заданного поля в заголовке ответа. </tag-desc> -<tag-name> +<tag-name id="r_internal_redirect"> <literal>$r->internal_redirect(<value>uri</value>)</literal> </tag-name> <tag-desc> делает внутреннее перенаправление на указанный <value>uri</value>. Перенаправление происходит уже после завершения обработчика Perl. <note> -На данный момент перенаправления в именованные location’ы не поддерживаются. +Начиная с версии 1.17.2 метод принимает экранированные URI и +поддерживает перенаправления в именованные location. </note> </tag-desc>