| 1083 | |
| 1084 | |
| 1085 | static dav_error * dav_fs_set_headers(request_rec *r, |
| 1086 | const dav_resource *resource) |
| 1087 | { |
| 1088 | /* ### this function isn't really used since we have a get_pathname */ |
| 1089 | if (!resource->exists) |
| 1090 | return NULL; |
| 1091 | |
| 1092 | /* make sure the proper mtime is in the request record */ |
| 1093 | ap_update_mtime(r, resource->info->finfo.mtime); |
| 1094 | |
| 1095 | /* ### note that these use r->filename rather than <resource> */ |
| 1096 | ap_set_last_modified(r); |
| 1097 | ap_set_etag(r); |
| 1098 | |
| 1099 | /* we accept byte-ranges */ |
| 1100 | ap_set_accept_ranges(r); |
| 1101 | |
| 1102 | /* set up the Content-Length header */ |
| 1103 | ap_set_content_length(r, resource->info->finfo.size); |
| 1104 | |
| 1105 | /* ### how to set the content type? */ |
| 1106 | /* ### until this is resolved, the Content-Type header is busted */ |
| 1107 | |
| 1108 | return NULL; |
| 1109 | } |
| 1110 | |
| 1111 | static dav_error * dav_fs_deliver(const dav_resource *resource, |
| 1112 | ap_filter_t *output) |
nothing calls this directly
no test coverage detected