> I would like to insert another type for Mathopd to handle. By type, I > mean another type aside from CGI_MAGIC_TYPE and REDIRECT_MAGIC_TYPE and > the like. Aside from inserting another #define at the top of mathopd.h, > where would I start looking for tips on where to insert the handling > code?
I would suggest you create a separate source file for the handler, Then add a hook for the handler in process_special(). I've seen in the process_special and process_external functions in > request.c, but am a little unsure of where the value for r->content_type > is coming from... I tried looking through the core.c, main.c and > request.c files, but just couldn't locate the origin of the information > in r->content_type. Can anyone tell me where r->content_type is > populated in the first place? Thanks! The get_mime() function would be the place to look. HTH Cheers Michiel
