mirror of
https://github.com/nginx/nginx.git
synced 2026-06-21 08:04:58 +00:00
named locations in post_action
This commit is contained in:
parent
ca876e1a7f
commit
ce30765975
1 changed files with 6 additions and 1 deletions
|
|
@ -2448,7 +2448,12 @@ ngx_http_post_action(ngx_http_request_t *r)
|
|||
|
||||
r->read_event_handler = ngx_http_block_reading;
|
||||
|
||||
ngx_http_internal_redirect(r, &clcf->post_action, NULL);
|
||||
if (clcf->post_action.data[0] == '/') {
|
||||
ngx_http_internal_redirect(r, &clcf->post_action, NULL);
|
||||
|
||||
} else {
|
||||
ngx_http_named_location(r, &clcf->post_action);
|
||||
}
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue