MCPcopy Create free account
hub / github.com/apache/httpd / dav_fs_set_headers

Function dav_fs_set_headers

modules/dav/fs/repos.c:1085–1109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083
1084
1085static 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
1111static dav_error * dav_fs_deliver(const dav_resource *resource,
1112 ap_filter_t *output)

Callers

nothing calls this directly

Calls 5

ap_update_mtimeFunction · 0.85
ap_set_last_modifiedFunction · 0.85
ap_set_etagFunction · 0.85
ap_set_accept_rangesFunction · 0.85
ap_set_content_lengthFunction · 0.85

Tested by

no test coverage detected