#define AP_NOBODY_WROTE -1
#define AP_NOBODY_READ -2
+#define AP_REQUEST_DONE -3
/* ap_input_mode_t - input filtering modes
*
static int default_handler(request_rec *r)
{
+ ap_bucket_brigade *bb;
+ ap_bucket *e;
core_dir_config *d =
(core_dir_config *)ap_get_module_config(r->per_dir_config, &core_module);
int errstatus;
ap_md5digest(r->pool, fd));
}
- if (!r->header_only) {
- ap_bucket_brigade *bb = ap_brigade_create(r->pool);
- ap_bucket *e = ap_bucket_create_file(fd, 0, r->finfo.size);
-
- AP_BRIGADE_INSERT_HEAD(bb, e);
- e = ap_bucket_create_eos();
- AP_BRIGADE_INSERT_TAIL(bb, e);
+ bb = ap_brigade_create(r->pool);
+ e = ap_bucket_create_file(fd, 0, r->finfo.size);
- ap_pass_brigade(r->output_filters, bb);
- }
+ AP_BRIGADE_INSERT_HEAD(bb, e);
+ e = ap_bucket_create_eos();
+ AP_BRIGADE_INSERT_TAIL(bb, e);
- return OK;
+ return ap_pass_brigade(r->output_filters, bb);
}
/*