From: Igor Sysoev Date: Fri, 15 Feb 2008 12:46:40 +0000 (+0000) Subject: named locations in post_action X-Git-Tag: release-0.6.27~34 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=ce30765975c2fce3fdb0a855519775f2d35cabec;p=nginx.git named locations in post_action --- diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 4d21a002a..8c72659d3 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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; }