comparison src/http/ngx_http_request.c @ 1894:22e28e77246b

named locations in post_action
author Igor Sysoev <igor@sysoev.ru>
date Fri, 15 Feb 2008 12:46:40 +0000
parents 1ff400fed04d
children 291689a7e5dc
comparison
equal deleted inserted replaced
1893:685048830623 1894:22e28e77246b
2446 r->header_only = 1; 2446 r->header_only = 1;
2447 r->post_action = 1; 2447 r->post_action = 1;
2448 2448
2449 r->read_event_handler = ngx_http_block_reading; 2449 r->read_event_handler = ngx_http_block_reading;
2450 2450
2451 ngx_http_internal_redirect(r, &clcf->post_action, NULL); 2451 if (clcf->post_action.data[0] == '/') {
2452 ngx_http_internal_redirect(r, &clcf->post_action, NULL);
2453
2454 } else {
2455 ngx_http_named_location(r, &clcf->post_action);
2456 }
2452 2457
2453 return NGX_OK; 2458 return NGX_OK;
2454 } 2459 }
2455 2460
2456 2461