ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-HTTP/HTTP.pm
(Generate patch)

Comparing AnyEvent-HTTP/HTTP.pm (file contents):
Revision 1.110 by root, Fri Feb 10 01:26:59 2012 UTC vs.
Revision 1.111 by root, Sun Apr 22 12:58:38 2012 UTC

46use AnyEvent::Util (); 46use AnyEvent::Util ();
47use AnyEvent::Handle (); 47use AnyEvent::Handle ();
48 48
49use base Exporter::; 49use base Exporter::;
50 50
51our $VERSION = '2.13'; 51our $VERSION = '2.14';
52 52
53our @EXPORT = qw(http_get http_post http_head http_request); 53our @EXPORT = qw(http_get http_post http_head http_request);
54 54
55our $USERAGENT = "Mozilla/5.0 (compatible; U; AnyEvent-HTTP/$VERSION; +http://software.schmorp.de/pkg/AnyEvent)"; 55our $USERAGENT = "Mozilla/5.0 (compatible; U; AnyEvent-HTTP/$VERSION; +http://software.schmorp.de/pkg/AnyEvent)";
56our $MAX_RECURSE = 10; 56our $MAX_RECURSE = 10;
1328 # other formats fail in the loop below 1328 # other formats fail in the loop below
1329 1329
1330 for (0..11) { 1330 for (0..11) {
1331 if ($m eq $month[$_]) { 1331 if ($m eq $month[$_]) {
1332 require Time::Local; 1332 require Time::Local;
1333 return Time::Local::timegm ($S, $M, $H, $d, $_, $y); 1333 return eval { Time::Local::timegm ($S, $M, $H, $d, $_, $y) };
1334 } 1334 }
1335 } 1335 }
1336 1336
1337 undef 1337 undef
1338} 1338}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines