diff src/http/ngx_http_request.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 d478379e51ac
children 2e2ae6077ae8
line wrap: on
line diff
--- a/src/http/ngx_http_request.c	Fri May 08 09:41:43 2009 +0000
+++ b/src/http/ngx_http_request.c	Fri May 08 14:25:51 2009 +0000
@@ -1815,6 +1815,11 @@
                    "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;