comparison src/http/ngx_http_special_response.c @ 1982:dd388c80f5a2

args support in static error_page
author Igor Sysoev <igor@sysoev.ru>
date Tue, 29 Apr 2008 10:06:43 +0000
parents d23396f2a902
children e720be7bc195 9f15e5f8ff9e
comparison
equal deleted inserted replaced
1981:65581f79e81b 1982:dd388c80f5a2
439 439
440 r->err_status = err_page->overwrite; 440 r->err_status = err_page->overwrite;
441 441
442 r->zero_in_uri = 0; 442 r->zero_in_uri = 0;
443 443
444 args = NULL;
445
446 if (err_page->uri_lengths) { 444 if (err_page->uri_lengths) {
447 if (ngx_http_script_run(r, &u, err_page->uri_lengths->elts, 0, 445 if (ngx_http_script_run(r, &u, err_page->uri_lengths->elts, 0,
448 err_page->uri_values->elts) 446 err_page->uri_values->elts)
449 == NULL) 447 == NULL)
450 { 448 {
451 return NGX_ERROR; 449 return NGX_ERROR;
452 } 450 }
453 451
454 p = u.data; 452 p = u.data;
455 uri = &u; 453 uri = &u;
454 args = NULL;
456 455
457 if (*p == '/') { 456 if (*p == '/') {
458 457
459 last = p + uri->len; 458 last = p + uri->len;
460 459
486 } 485 }
487 } 486 }
488 487
489 } else { 488 } else {
490 uri = &err_page->uri; 489 uri = &err_page->uri;
490 args = &err_page->args;
491 } 491 }
492 492
493 if (uri->data[0] == '/') { 493 if (uri->data[0] == '/') {
494 494
495 r->method = NGX_HTTP_GET; 495 r->method = NGX_HTTP_GET;