* Chris Knight wrote:But it does not function in this circumstance. I believe ModMimeUsePathInfo turns on calls to find_ct but find_ct relies on filename which only goes down to the <Location> (the root of the Catacomb server.) I could hack the filename if I can get to it before find_ct is called (as detailed in my second paragraph) but that's certainly a poor solution.
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.
ModMimeUsePathInfo was created for this purpose IIRC.
HTH, nd
Andr� Malo wrote:
- automatic type identification (by extension) in virtual ... 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
- Chris Knight
