| 1690 | } |
| 1691 | |
| 1692 | static void end_output_stream(request_rec *r, int status) |
| 1693 | { |
| 1694 | conn_rec *c = r->connection; |
| 1695 | apr_bucket_brigade *bb; |
| 1696 | apr_bucket *b; |
| 1697 | |
| 1698 | bb = apr_brigade_create(r->pool, c->bucket_alloc); |
| 1699 | if (status != OK) { |
| 1700 | b = ap_bucket_error_create(status, NULL, r->pool, c->bucket_alloc); |
| 1701 | APR_BRIGADE_INSERT_TAIL(bb, b); |
| 1702 | } |
| 1703 | b = apr_bucket_eos_create(c->bucket_alloc); |
| 1704 | APR_BRIGADE_INSERT_TAIL(bb, b); |
| 1705 | |
| 1706 | ap_pass_brigade(r->output_filters, bb); |
| 1707 | apr_brigade_cleanup(bb); |
| 1708 | } |
| 1709 | |
| 1710 | AP_DECLARE(void) ap_finalize_sub_req_protocol(request_rec *sub) |
| 1711 | { |
no test coverage detected