Mercurial > hg > nginx
diff src/http/ngx_http_special_response.c @ 161:88abd07d9f62
nginx-0.0.1-2003-10-27-19:16:17 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 27 Oct 2003 16:16:17 +0000 |
parents | d377ee423603 |
children | 96993d4d5067 |
line wrap: on
line diff
--- a/src/http/ngx_http_special_response.c Mon Oct 27 08:53:49 2003 +0000 +++ b/src/http/ngx_http_special_response.c Mon Oct 27 16:16:17 2003 +0000 @@ -157,6 +157,12 @@ ngx_chain_t *out, **ll, *cl; ngx_http_core_loc_conf_t *clcf; + rc = ngx_http_discard_body(r); + + if (rc != NGX_OK) { + return rc; + } + r->headers_out.status = error; if (error < NGX_HTTP_BAD_REQUEST) {