Mercurial > hg > nginx
comparison src/http/ngx_http_special_response.c @ 142:cb77c084acdb
nginx-0.0.1-2003-10-09-11:00:45 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 09 Oct 2003 07:00:45 +0000 |
parents | 6dfda4cf5200 |
children | 5526213be452 |
comparison
equal
deleted
inserted
replaced
141:656d468f4ead | 142:cb77c084acdb |
---|---|
197 } else { | 197 } else { |
198 r->headers_out.content_length = -1; | 198 r->headers_out.content_length = -1; |
199 } | 199 } |
200 | 200 |
201 rc = ngx_http_send_header(r); | 201 rc = ngx_http_send_header(r); |
202 | |
202 if (rc == NGX_ERROR) { | 203 if (rc == NGX_ERROR) { |
203 return NGX_ERROR; | 204 return NGX_ERROR; |
204 } | 205 } |
205 | 206 |
206 if (r->header_only) { | 207 if (r->header_only) { |
208 ngx_http_finalize_request(r, rc); | |
209 #if 0 | |
207 if (rc == NGX_AGAIN) { | 210 if (rc == NGX_AGAIN) { |
208 ngx_http_set_write_handler(r); | 211 ngx_http_set_write_handler(r); |
209 return NGX_AGAIN; | 212 return NGX_AGAIN; |
210 } | 213 } |
214 #endif | |
211 | 215 |
212 return NGX_OK; | 216 return NGX_OK; |
213 } | 217 } |
214 | 218 |
215 if (error_pages[err].len == 0) { | 219 if (error_pages[err].len == 0) { |
246 | 250 |
247 h->type |= NGX_HUNK_LAST; | 251 h->type |= NGX_HUNK_LAST; |
248 | 252 |
249 rc = ngx_http_output_filter(r, h); | 253 rc = ngx_http_output_filter(r, h); |
250 | 254 |
255 ngx_http_finalize_request(r, rc); | |
256 | |
257 #if 0 | |
251 if (r->main == NULL) { | 258 if (r->main == NULL) { |
252 if (rc == NGX_AGAIN) { | 259 if (rc == NGX_AGAIN) { |
253 ngx_http_set_write_handler(r); | 260 ngx_http_set_write_handler(r); |
254 return NGX_AGAIN; | 261 return NGX_AGAIN; |
255 } | 262 } |
256 } | 263 } |
264 #endif | |
257 | 265 |
258 return NGX_OK; | 266 return NGX_OK; |
259 | 267 |
260 } | 268 } |