Subject: | Bug in WWW Crawler Lite |
Date: | Fri, 9 Oct 2015 20:07:31 +0000 (UTC) |
To: | "bug-WWW-Crawler-Lite [...] rt.cpan.org" <bug-WWW-Crawler-Lite [...] rt.cpan.org> |
From: | Jim Frey <head_dunce [...] yahoo.com> |
Not a big deal, but lines 152 should be changed to something like this, or you'll be thrown errors with $type not being defined depending on the web site.
148 my $res = $ua->request( GET $url );
149
150 my $type = '';
151 if( defined $res->header('content-type') ){
152 ($type) = split /\;/, $res->header('content-type');
153 }