using mod_filter on non-200 responses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to use mod_filter (specifically mod_substitute) on non-200
responses, specifically with a 404 response.  After playing around for
a while and assuming that i had screwed something up, i discovered
that mod_filter specifically skips non-200 responses [1].  Is there an
important reason for skipping such responses?  would a patch to make
skipping such responses configurable be accepted into the main distro
if i wrote it?

thanks,

andy

1.
static apr_status_t filter_harness(ap_filter_t *f, apr_bucket_brigade *bb)

{

    apr_status_t ret;

    const char *cachecontrol;

    char *str;

    harness_ctx *ctx = f->ctx;

    ap_filter_rec_t *filter = f->frec;



    if (f->r->status != 200) {

        ap_remove_output_filter(f);

        return ap_pass_brigade(f->next, bb);

    }

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux