diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-04-21 22:54:33 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-04-21 22:54:33 +0400 |
commit | 732a27196381164c799d345ec0d010b416408555 (patch) | |
tree | 043848398927223e1b08d1b15c071b3a23717d76 /src/http/ngx_http_special_response.c | |
parent | bb570859043557c5c1b20d933ff2e4c18d13c980 (diff) |
nginx-0.0.3-2004-04-21-22:54:33 import
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r-- | src/http/ngx_http_special_response.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index 275ae95c9..4eb8899de 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -214,7 +214,11 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error) err_page = clcf->error_pages->elts; for (i = 0; i < clcf->error_pages->nelts; i++) { if (err_page[i].code == error) { - r->err_status = error; + if (err_page[i].overwrite) { + r->err_status = err_page[i].overwrite; + } else { + r->err_status = error; + } r->err_ctx = r->ctx; return ngx_http_internal_redirect(r, &err_page[i].uri, NULL); } |