Mercurial > hg > nginx
comparison src/http/modules/perl/ngx_http_perl_module.c @ 7529:d758d04e0790
Perl: avoid redirects on errors.
Previously, redirects scheduled with $r->internal_redirect() were followed
even if the code then died. Now these are ignored and nginx will return
an error instead.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 12 Jul 2019 15:38:27 +0300 |
parents | 0cb693b4cbbb |
children | fd9252844ec1 |
comparison
equal
deleted
inserted
replaced
7528:0cb693b4cbbb | 7529:d758d04e0790 |
---|---|
776 | 776 |
777 if (rv) { | 777 if (rv) { |
778 return NGX_ERROR; | 778 return NGX_ERROR; |
779 } | 779 } |
780 | 780 |
781 ctx->redirect_uri.len = 0; | |
782 | |
781 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 783 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
782 } | 784 } |
783 | 785 |
784 if (n != 1) { | 786 if (n != 1) { |
785 ngx_log_error(NGX_LOG_ALERT, c->log, 0, | 787 ngx_log_error(NGX_LOG_ALERT, c->log, 0, |