]> granicus.if.org Git - apache/commitdiff
with LimitRequestBody xxx and the deflate output filter configured, mod_deflate
authorGreg Ames <gregames@apache.org>
Fri, 6 Jul 2007 19:36:30 +0000 (19:36 +0000)
committerGreg Ames <gregames@apache.org>
Fri, 6 Jul 2007 19:36:30 +0000 (19:36 +0000)
eats the 413 error bucket, a 500 error is logged, and a blank screen appears
at the browser.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@554011 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_deflate.c

index 2fd15cba5f21ec8bb1df5be7c26051a36cc19c66..d92144ea001ef5e4da900db4a8d65a94795163ef 100644 (file)
@@ -44,6 +44,7 @@
 #include "http_request.h"
 #define APR_WANT_STRFUNC
 #include "apr_want.h"
+#include "http_protocol.h"
 
 #include "zlib.h"
 
@@ -578,6 +579,11 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
             continue;
         }
 
+        if (AP_BUCKET_IS_ERROR(e)) {
+            ap_remove_output_filter(f);
+            return ap_pass_brigade(f->next, bb);
+        }
+
         /* read */
         apr_bucket_read(e, &data, &len, APR_BLOCK_READ);