mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
The changes required for the APR_FINFO_wanted argument to
apr_stat/lstat/getfileinfo. These are -NOT- optimal, they are simply the required changes to get the server working. The size of the patch is a warning about how we need to really look at what we are trying to accomplish with all of these stat/lstat calls. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1271,7 +1271,7 @@ int ap_proxy_cache_send(request_rec *r, ap_cache_el *c)
|
||||
len = 2;
|
||||
apr_send(fp, CRLF, &len);
|
||||
/* send data */
|
||||
apr_getfileinfo(&finfo, cachefp);
|
||||
apr_getfileinfo(&finfo, APR_FINFO_NORM, cachefp);
|
||||
if(!r->header_only && ap_send_fd(cachefp, r, offset, finfo.size, &len))
|
||||
return HTTP_INTERNAL_SERVER_ERROR;
|
||||
return OK;
|
||||
|
Reference in New Issue
Block a user