On Thu, 25 Jan 2001 [EMAIL PROTECTED] wrote:

> I've been getting these occassional errors from libapreq, 1 every couple
> days:
> 
> [Thu Jan 25 15:54:33 2001] [error] [client 64.12.102.22] [libapreq]
> unknown content-type: `applicationontent-Type: application/x-www-form-urlencoded\'
> 
> It's always an AOL user agent, but not always the same one.  I added
> Apache::DumpHeaders today and caught one after a couple hours:
> 
> POST /poll/iIDEre/results HTTP/1.0
> Accept: */*
> Accept-Encoding: gzip, deflate
> Accept-Language: en-us
> Content-Length: 20
> Content-Type: applicationontent-Type: application/x-www-form-urlencoded

yikes.

you could work around this like so (untested):

sub AOL::fixup {
    my $r = shift;
    my $ct = $r->header_in('content-type');
    if ($ct =~ s/^\S+:\s*//) {
        $r->header_in('content-type', $ct);
    }
    0;
}

PerlFixupHandler AOL::fixup

libapreq could probably deal with this internally, maybe by assuming
content-type is DEFAULT_ENCTYPE if it is unable to find an exact match.


Reply via email to