diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-10-27 19:16:17 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-27 19:16:17 +0300 |
commit | 425a42ce3dfe0a24c5c6eb44285447b40e685291 (patch) | |
tree | 7eaa9a2587617b14b88d4dc6b7ee1979b2b8f733 /src/http/ngx_http_special_response.c | |
parent | 10fc9ef77503ec4db5f5006557aeffc1939043ca (diff) |
nginx-0.0.1-2003-10-27-19:16:17 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, 6 insertions, 0 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index ce6183e8b..035d4878f 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -157,6 +157,12 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error) 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) { |