This patch fixes issue 2304. (From the issue tracker:) In
mod_dav_svn/liveprop.c, we default to setting a file's mime-type to
"text/plain" if nothing else is known about the file. Brane suggested
using httpd.conf's DefaultType directive before resorting to "text/plain".
This patch calls the ap_default_type function in place of setting the
mime-type. This function returns the value of the DefaultType, or
"text/plain" if it is not configured.
I have not yet tested this patch, as I am having trouble figuring out
how. If anybody could tell me what the best way to test it would be,
that would be great.
Fix issue #2304 by calling apache's ap_default_type method to get the
server's default mime-type when nothing is known about the file. We
don't need another else clause because ap_default_type will return
"text/plain" if the DefaultType is not set in httpd.conf.
(dav_svn_insert_prop): Replaced default assignment to "text/plain"
with a call to ap_default_type.
Received on Thu Jul 7 17:47:03 2005