in reply to Apache, mod_perl and content type handlers

Hmmm don't know but the code and the apache conf would be more helpful than just a description of the problem.

-derby

update: and is it just one web server or a farm of web servers? I've seen situations like this with web server farms where one of the machines is not configured correctly.

  • Comment on Re: Apache, mod_perl and content type handlers

Replies are listed 'Best First'.
Re^2: Apache, mod_perl and content type handlers
by Mutant (Priest) on Apr 27, 2007 at 08:03 UTC
    As I mentioned above (altho perhaps not clearly), it's multiple servers, and it's occuring across all servers.

    The code in the content type handler is fairly simple, and given that it works in the vast majority of cases, I'm not so suspicious of it:
    sub type_handler { my $r = shift; my $type = $r->notes('CONTENT_TYPE'); if ($type) { $r->content_type($type); return OK; } else { return DECLINED: } }
    What sets the content type in the notes? That's done in the translation handler, read from a file for each piece of content it serves. I can be fairly sure that this is being done correctly for the cases that content type is being set to text/plain. (I haven't ruled it out, but if that *is* the problem, then it's not likely I can get much help from PM without going into a *lot* more detail, which I'm probably not prepared to do at this stage).