So, Catacomb and other mod_dav backends that handle GET requests would
like to have the Content-Type of resources be automatically identified
based on the path information of that resource in the same manner as
file resources.
How would I best approach this problem? It appears that the mod_dav.c
hooks are defined as MIDDLE as is the mod_mime.c hooks...Should I force
a specific ordering of execution? Only other problem is find_ct in
mod_mime.c wants to see the finfo structure which doesn't apply to
virtual resources.
I can't call find_ct directly, nor can I get at the mime_dir_config
information to map the extension back to a Content-Type. Ideas?
It seems to me that the mime_dir_config information should be made
public or at least some methods for converting extension to Content-Type
(and visa-versa?)
- Re: automatic type identification (by extension) in virt... Chris Knight
- Re: automatic type identification (by extension) in... Andr� Malo
- Re: automatic type identification (by extension... Justin Erenkrantz
- Re: automatic type identification (by exten... Chris Knight
- mod_mime.c#find_ct() redux (Re: automatic t... Chris Knight
- Re: mod_mime.c#find_ct() redux (Re: aut... Justin Erenkrantz
- fixed -- mod_mime.c#find_ct() redu... Chris Knight
- Re: fixed -- mod_mime.c#find_c... Justin Erenkrantz
- Re: automatic type identification (by extension... Chris Knight
