struct and the newly-added start field of the apr_bucket struct
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88372
13f79535-47bb-0310-9956-
ffa450edef68
/** The error code */
int status;
/** The error string */
- const char *start;
+ const char *data;
};
AP_DECLARE_DATA extern const apr_bucket_type_t ap_bucket_type_error;
*/
else if (APR_BUCKET_IS_FILE(e)
&& (e->length >= AP_MIN_SENDFILE_BYTES)) {
- apr_bucket_shared *s = e->data;
- apr_bucket_file *a = s->data;
+ apr_bucket_file *a = e->data;
/* We can't handle more than one file bucket at a time
* so we split here and send the file we have already
fd = a->fd;
flen = e->length;
- foffset = s->start;
+ foffset = e->start;
}
else {
const char *str;
return NULL;
}
h->status = error;
- if (buf) {
- h->start = apr_pstrdup(p, buf);
- }
+ h->data = (buf) ? apr_pstrdup(p, buf) : NULL;
b->length = 0;
+ b->start = 0;
b->type = &ap_bucket_type_error;
b->data = h;
return b;