apr_read_type_e eblock = APR_BLOCK_READ;
apr_bucket *e;
char *cur;
+ int eos = 0;
if (mobj->type == CACHE_TYPE_FILE) {
apr_file_t *file = NULL;
*/
APR_BRIGADE_FOREACH(e, b) {
if (APR_BUCKET_IS_EOS(e)) {
- obj->complete = 1;
+ eos = 1;
}
else if (APR_BUCKET_IS_FILE(e)) {
apr_bucket_file *a = e->data;
other++;
}
}
- if (fd == 1 && !other && obj->complete) {
+ if (fd == 1 && !other && eos) {
apr_file_t *tmpfile;
/* Open a new XTHREAD handle to the file */
rv = apr_file_open(&tmpfile, r->filename,