aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-05-08 14:25:51 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-05-08 14:25:51 +0000
commitfd4191845b62a9bc7ad0cf23d6e64866dbc5e0f6 (patch)
treec7ff251d2c11da5aea16f3780cdb39fed1c1efc1 /src/http/ngx_http_request.c
parent4318688cce5dc30a2db7bfe1a734e1ff6782e7f9 (diff)
downloadnginx-fd4191845b62a9bc7ad0cf23d6e64866dbc5e0f6.tar.gz
nginx-fd4191845b62a9bc7ad0cf23d6e64866dbc5e0f6.zip
handle big responses for "size" and "test" image_filters
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 9cdd92ddd..32f120c8e 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1815,6 +1815,11 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
"http finalize request: %d, \"%V?%V\" %d",
rc, &r->uri, &r->args, r == c->data);
+ if (rc == NGX_OK && r->filter_finalize) {
+ c->error = 1;
+ return;
+ }
+
if (rc == NGX_DECLINED) {
r->content_handler = NULL;
r->write_event_handler = ngx_http_core_run_phases;