Bill Stoddard wrote:
/* Open the headers file */
- rc = apr_file_open(&hfd, headers, APR_READ|APR_BINARY, 0, r->pool);
+ rc = apr_file_open(&hfd, headers, flags, 0, r->pool);
Should be something like this adapted from core:
core_dir_config *core_config;
core_config = (core_dir_config *) ap_get_module_config(r->per_dir_config,
&core_module);
if ((rv = apr_file_open(&hfd, data, APR_READ | APR_BINARY
#if APR_HAS_SENDFILE
|
((core_config->enable_sendfile ==
ENABLE_SENDFILE_OFF)
? 0 : APR_SENDFILE_ENABLED)
#endif
, 0, r->pool)) != APR_SUCCESS)
{
--
Brian Akins
Senior Systems Engineer
CNN Internet Technologies