if (!pConfig->bEnabled) {
return DECLINED;
}
-
- bb = apr_brigade_create(c->pool, c->bucket_alloc);
- for ( ; ; ) {
+ do {
+ bb = apr_brigade_create(c->pool, c->bucket_alloc);
+
/* Get a single line of input from the client */
if ((rv = ap_get_brigade(c->input_filters, bb, AP_MODE_GETLINE,
APR_BLOCK_READ, 0) != APR_SUCCESS ||
/* Make sure the data is flushed to the client */
b = apr_bucket_flush_create(c->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(bb, b);
- ap_pass_brigade(c->output_filters, bb);
- }
+
+ /* Send back the data. */
+ rv = ap_pass_brigade(c->output_filters, bb);
+ } while (rv == APR_SUCCESS);
+
return OK;
}