On 18 Sep 2010, at 8:38 PM, Nick Kew wrote:

Another API observation, this time with mod_include.

The generic include_ctx_t structure that is handed to include operations doesn't include request_rec. While mod_include itself has a private structure that keeps track of request_rec, this isn't available to external modules.

I've stumbled on that one before, and cursed my way to a workaround.
IIRC an accessor function for ctx->intern->r did the job.

The following patch moves the definition of request_rec to the generic mod_include ctx structure, so that it's available to any include provider.

Regards,
Graham
--

Attachment: httpd-mod_include-request_rec.patch
Description: Binary data


Reply via email to