diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-11-11 18:13:43 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-11 18:13:43 +0000 |
| commit | 27c30f9919ed695ab718c3365a445d47a14fd80f (patch) | |
| tree | b8bd50e2fcecf477f1bb05d61fc7626c06a4442b /src/http/ngx_http_special_response.c | |
| parent | d59a047a7070dc6af13b2e35c097efccc8ce38d0 (diff) | |
| download | nginx-27c30f9919ed695ab718c3365a445d47a14fd80f.tar.gz nginx-27c30f9919ed695ab718c3365a445d47a14fd80f.tar.bz2 | |
nginx-0.0.1-2003-11-11-21:13:43 import
Diffstat (limited to 'src/http/ngx_http_special_response.c')
| -rw-r--r-- | src/http/ngx_http_special_response.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index c1cb23aa4..8e93e90ce 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -203,11 +203,12 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error) clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); - if (!r->error_page && clcf->error_pages) { + if (r->err_ctx == NULL && clcf->error_pages) { err_page = clcf->error_pages->elts; for (i = 0; i < clcf->error_pages->nelts; i++) { if (err_page[i].code == error) { - r->error_page = 1; + r->err_status = error; + r->err_ctx = r->ctx; return ngx_http_internal_redirect(r, &err_page[i].uri, NULL); } } |
