comparison 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
comparison
equal deleted inserted replaced
160:e7e094d34162 161:88abd07d9f62
155 int err, rc; 155 int err, rc;
156 ngx_hunk_t *h; 156 ngx_hunk_t *h;
157 ngx_chain_t *out, **ll, *cl; 157 ngx_chain_t *out, **ll, *cl;
158 ngx_http_core_loc_conf_t *clcf; 158 ngx_http_core_loc_conf_t *clcf;
159 159
160 rc = ngx_http_discard_body(r);
161
162 if (rc != NGX_OK) {
163 return rc;
164 }
165
160 r->headers_out.status = error; 166 r->headers_out.status = error;
161 167
162 if (error < NGX_HTTP_BAD_REQUEST) { 168 if (error < NGX_HTTP_BAD_REQUEST) {
163 /* 3XX */ 169 /* 3XX */
164 err = error - NGX_HTTP_MOVED_PERMANENTLY; 170 err = error - NGX_HTTP_MOVED_PERMANENTLY;