- Original Message -
From: "Stas Bekman" <[EMAIL PROTECTED]>
> Issac Goldstand wrote:
> > Not sure how to translate that to mod_perl's API (the first half is easy
and
> > understandable in C, I think, though...)
>
> It works exactly the same, just add $ before 'f' :) Though you don't say
>
Issac Goldstand wrote:
Implemented it in C:
if (f->r->status==HTTP_NOT_FOUND) // If this is so, we need to revamp the
request_rec
{
f->r->status=HTTP_OK; // Spoof HTTP_OK
f->r->status_line="200 OK";
APR_BRIGADE_INSERT_TAIL(ctx->bb,apr_bucket_eos_create(f->c->bucket_alloc));
// Add an E
x27;m not sure if it's the "best way to do it"...
I'm sure that as I delve deeper into Apache 2, I'll find better solutions...
Issac
- Original Message -
From: "Stas Bekman" <[EMAIL PROTECTED]>
To: "Issac Goldstand" <[EMAIL PROTECTED]
Issac Goldstand wrote:
I'm writing a filter in which two lines of data are to be appended to the
content going back. However, I'd like to test for a 404, and if found set
the response to 200. Can this be done from the output filters? Or am I
going to have to do something more complex with a han
I'm writing a filter in which two lines of data are to be appended to the
content going back. However, I'd like to test for a 404, and if found set
the response to 200. Can this be done from the output filters? Or am I
going to have to do something more complex with a handler?
The big problem i