Mercurial > hg > nginx
comparison src/http/ngx_http_special_response.c @ 2819:43fe53832da7
handle big responses for "size" and "test" image_filters
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 08 May 2009 14:25:51 +0000 |
parents | 3daf68f2efe3 |
children | 26e06e009ced |
comparison
equal
deleted
inserted
replaced
2818:7e02df612521 | 2819:43fe53832da7 |
---|---|
453 ngx_http_clean_header(r); | 453 ngx_http_clean_header(r); |
454 | 454 |
455 /* clear the modules contexts */ | 455 /* clear the modules contexts */ |
456 ngx_memzero(r->ctx, sizeof(void *) * ngx_http_max_module); | 456 ngx_memzero(r->ctx, sizeof(void *) * ngx_http_max_module); |
457 | 457 |
458 r->filter_finalize = 1; | |
459 | |
458 rc = ngx_http_special_response_handler(r, error); | 460 rc = ngx_http_special_response_handler(r, error); |
459 | 461 |
460 /* NGX_ERROR resets any pending data */ | 462 /* NGX_ERROR resets any pending data */ |
461 | 463 |
462 return (rc == NGX_OK) ? NGX_ERROR : rc; | 464 switch (rc) { |
465 | |
466 case NGX_OK: | |
467 case NGX_DONE: | |
468 return NGX_ERROR; | |
469 | |
470 default: | |
471 return rc; | |
472 } | |
463 } | 473 } |
464 | 474 |
465 | 475 |
466 void | 476 void |
467 ngx_http_clean_header(ngx_http_request_t *r) | 477 ngx_http_clean_header(ngx_http_request_t *r) |