Changeset 1953

Show
Ignore:
Timestamp:
06/14/07 13:45:36
Author:
miyagawa
Message:

ignore application/octet-stream MIME type if enclosure->type is already set

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/HEADEnclosureMetadata.pm

    r1588 r1953  
    3838        if ($meta->{type} && 
    3939            (!$enclosure->type || 
    40              $meta->{type} !~ m!^text/! && $enclosure->type ne $meta->{type})) { 
     40             $meta->{type} !~ m!^(?:text/|application/octet-stream)! && 
     41             $enclosure->type ne $meta->{type})) { 
    4142            $enclosure->type($meta->{type}); 
    4243            $context->log(info => "Set type of " . $enclosure->url . ": $meta->{type}");