summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_special_response.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-03-23 06:01:52 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-03-23 06:01:52 +0000
commit89690bfe02703853c3e987d1e5c4d9878c4d28f0 (patch)
treec5d9a59cdd74b54ffa939dcf59886307f26c984c /src/http/ngx_http_special_response.c
parentae02c19867083c6ad3e51506109cb37bca1d36d1 (diff)
downloadnginx-89690bfe02703853c3e987d1e5c4d9878c4d28f0.tar.gz
nginx-89690bfe02703853c3e987d1e5c4d9878c4d28f0.tar.bz2
nginx-0.0.3-2004-03-23-09:01:52 import
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r--src/http/ngx_http_special_response.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
index 5ffebb4c2..275ae95c9 100644
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -185,8 +185,8 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error)
rc = ngx_http_discard_body(r);
- if (rc != NGX_OK) {
- return rc;
+ if (rc == NGX_HTTP_INTERNAL_SERVER_ERROR) {
+ error = NGX_HTTP_INTERNAL_SERVER_ERROR;
}
r->headers_out.status = error;