| 942 | } |
| 943 | |
| 944 | static apr_status_t store_headers(cache_handle_t *h, request_rec *r, cache_info *info) |
| 945 | { |
| 946 | disk_cache_object_t *dobj = (disk_cache_object_t*) h->cache_obj->vobj; |
| 947 | |
| 948 | memcpy(&h->cache_obj->info, info, sizeof(cache_info)); |
| 949 | |
| 950 | if (r->headers_out) { |
| 951 | dobj->headers_out = ap_cache_cacheable_headers_out(r); |
| 952 | } |
| 953 | |
| 954 | if (r->headers_in) { |
| 955 | dobj->headers_in = ap_cache_cacheable_headers_in(r); |
| 956 | } |
| 957 | |
| 958 | if (r->header_only && r->status != HTTP_NOT_MODIFIED) { |
| 959 | dobj->disk_info.header_only = 1; |
| 960 | } |
| 961 | |
| 962 | return APR_SUCCESS; |
| 963 | } |
| 964 | |
| 965 | static apr_status_t write_headers(cache_handle_t *h, request_rec *r) |
| 966 | { |
nothing calls this directly
no test coverage detected