Changes with Apache 2.0.40
+ *) Fixed a mod_include error case in which no HTTP response was sent
+ to the client if an shtml document contained an unterminated SSI
+ directive [Brian Pane]
+
*) Improve ap_get_client_block implementation by using APR-util brigade
helper functions and relying on current filter assumptions.
[Justin Erenkrantz]
/* Set aside tag, pass pre-tag... */
tag_and_after = apr_brigade_split(*bb, ctx->head_start_bucket);
ap_save_brigade(f, &ctx->ssi_tag_brigade, &tag_and_after, r->pool);
+ if (APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(ctx->ssi_tag_brigade))) {
+ apr_bucket *new_eos;
+ /* Make sure there's no EOS at the end of the set-aside
+ * brigade, because we may later prepend it to some
+ * other brigade
+ */
+ APR_BUCKET_REMOVE(APR_BRIGADE_LAST(ctx->ssi_tag_brigade));
+
+ /* And put an EOS on the brigade that we're about to pass
+ * to the next filter.
+ */
+ new_eos = apr_bucket_eos_create((*bb)->bucket_alloc);
+ APR_BRIGADE_INSERT_TAIL(*bb, new_eos);
+ }
rv = ap_pass_brigade(f->next, *bb);
if (rv != APR_SUCCESS) {
return rv;