Perl: named locations in $r->internal_redirect().

This commit is contained in:
Maxim Dounin 2019-07-12 15:39:28 +03:00
parent 8df08b02b8
commit 29fea7d9ec

View File

@ -257,6 +257,10 @@ ngx_http_perl_handle_request(ngx_http_request_t *r)
}
if (uri.len) {
if (uri.data[0] == '@') {
ngx_http_named_location(r, &uri);
} else {
ngx_str_null(&args);
flags = NGX_HTTP_LOG_UNSAFE;
@ -266,6 +270,8 @@ ngx_http_perl_handle_request(ngx_http_request_t *r)
}
ngx_http_internal_redirect(r, &uri, &args);
}
ngx_http_finalize_request(r, NGX_DONE);
return;
}