HTTP::Body 1.05, removed useless use of eval/require in new()
[catagits/HTTP-Body.git] / lib / HTTP / Body.pm
index 12216d6..459387c 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 
 use Carp       qw[ ];
 
-our $VERSION = '1.04';
+our $VERSION = '1.05';
 
 our $TYPES = {
     'application/octet-stream'          => 'HTTP::Body::OctetStream',
@@ -97,12 +97,6 @@ sub new {
 
     my $body = $TYPES->{ $type || 'application/octet-stream' };
 
-    eval "require $body";
-
-    if ($@) {
-        die $@;
-    }
-
     my $self = {
         buffer         => '',
         chunk_buffer   => '',