]> git.kaiwu.me - nginx.git/commit
Perl: additional ctx->header_sent checks.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 12 Jul 2019 12:39:25 +0000 (15:39 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 12 Jul 2019 12:39:25 +0000 (15:39 +0300)
commit9e883a2e48ff8e55fcfb091284b44d8fa66fc007
tree0ae24b6c333fdc4b0865144fd49e71d50df15c84
parent78b39bd631fc18fd5778090183776f5275005e21
Perl: additional ctx->header_sent checks.

As we now have ctx->header_sent flag, it is further used to prevent
duplicate $r->send_http_header() calls, prevent output before sending
header, and $r->internal_redirect() after sending header.

Further, $r->send_http_header() protected from calls after
$r->internal_redirect().
src/http/modules/perl/nginx.xs
src/http/modules/perl/ngx_http_perl_module.c