aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-02-15 12:46:40 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-02-15 12:46:40 +0000
commitce30765975c2fce3fdb0a855519775f2d35cabec (patch)
treea8a57c094cbe0cf819d3f5a2d04d9b360e2e0547 /src
parentca876e1a7f76907bba165198e034c931f3ea06c3 (diff)
downloadnginx-ce30765975c2fce3fdb0a855519775f2d35cabec.tar.gz
nginx-ce30765975c2fce3fdb0a855519775f2d35cabec.zip
named locations in post_action
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_request.c7
1 files changed, 6 insertions, 1 deletions
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;
}