Andr� Malo wrote:

* Chris Knight wrote:



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


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.



Reply via email to