diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-05-08 14:25:51 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-05-08 14:25:51 +0000 |
| commit | fd4191845b62a9bc7ad0cf23d6e64866dbc5e0f6 (patch) | |
| tree | c7ff251d2c11da5aea16f3780cdb39fed1c1efc1 /src/http/ngx_http_special_response.c | |
| parent | 4318688cce5dc30a2db7bfe1a734e1ff6782e7f9 (diff) | |
| download | nginx-fd4191845b62a9bc7ad0cf23d6e64866dbc5e0f6.tar.gz nginx-fd4191845b62a9bc7ad0cf23d6e64866dbc5e0f6.tar.bz2 | |
handle big responses for "size" and "test" image_filters
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_special_response.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index 7d3fd43e9..8f0a2078d 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -455,11 +455,21 @@ ngx_http_filter_finalize_request(ngx_http_request_t *r, ngx_int_t error) /* clear the modules contexts */ ngx_memzero(r->ctx, sizeof(void *) * ngx_http_max_module); + r->filter_finalize = 1; + rc = ngx_http_special_response_handler(r, error); /* NGX_ERROR resets any pending data */ - return (rc == NGX_OK) ? NGX_ERROR : rc; + switch (rc) { + + case NGX_OK: + case NGX_DONE: + return NGX_ERROR; + + default: + return rc; + } } |
