Lines 245-250
Link Here
|
245 |
{ |
245 |
{ |
246 |
request_rec *r = f->r; |
246 |
request_rec *r = f->r; |
247 |
cache_request_rec *cache; |
247 |
cache_request_rec *cache; |
|
|
248 |
char *path; |
248 |
|
249 |
|
249 |
cache = (cache_request_rec *) ap_get_module_config(r->request_config, |
250 |
cache = (cache_request_rec *) ap_get_module_config(r->request_config, |
250 |
&cache_module); |
251 |
&cache_module); |
Lines 266-271
Link Here
|
266 |
* restore the status into it's handle. */ |
267 |
* restore the status into it's handle. */ |
267 |
r->status = cache->handle->cache_obj->info.status; |
268 |
r->status = cache->handle->cache_obj->info.status; |
268 |
|
269 |
|
|
|
270 |
if(!r->filename) { |
271 |
/* Restore filename, used by %f in LogFormat config */ |
272 |
/* FIXME: This should really be saved with the headers when |
273 |
caching, now we just bodge together something that might be right */ |
274 |
path = r->uri; |
275 |
while (*path == '/') { |
276 |
++path; |
277 |
} |
278 |
apr_filepath_merge(&r->filename, ap_document_root(r), path, |
279 |
APR_FILEPATH_TRUENAME | APR_FILEPATH_SECUREROOT, r->pool); |
280 |
} |
281 |
|
269 |
/* recall_headers() was called in cache_select() */ |
282 |
/* recall_headers() was called in cache_select() */ |
270 |
cache->provider->recall_body(cache->handle, r->pool, bb); |
283 |
cache->provider->recall_body(cache->handle, r->pool, bb); |
271 |
|
284 |
|