Skip to content

Commit

Permalink
Update HTTP::Tiny to CPAN version 0.012
Browse files Browse the repository at this point in the history
HTTP::Tiny 0.011 fails to mirror files correctly on MSWin32, preventing
CPAN bootstrapping over HTTP with just core Perl.  This is fixed in CPAN
version 0.012.

[DELTA]

0.012     2011-03-31 15:48:02 America/New_York

  [BUG FIXES]

  - mirror() now uses binmode during output (RT #67118) [Serguei Trouchelle]

  [DOCUMENTATION]

  - noted that SSL certificates are not verified against CA's
    (RT #66907)
  • Loading branch information
xdg committed Apr 1, 2011
1 parent 9780b8f commit b06ddfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Porting/Maintainers.pl
Expand Up @@ -984,7 +984,7 @@ package Maintainers;
'HTTP::Tiny' =>
{
'MAINTAINER' => 'dagolden',
'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.011.tar.gz',
'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.012.tar.gz',
'FILES' => q[cpan/HTTP-Tiny],
'EXCLUDED' => [
't/200_live.t',
Expand Down
7 changes: 5 additions & 2 deletions cpan/HTTP-Tiny/lib/HTTP/Tiny.pm
Expand Up @@ -9,7 +9,7 @@
#
package HTTP::Tiny;
BEGIN {
$HTTP::Tiny::VERSION = '0.011';
$HTTP::Tiny::VERSION = '0.012';
}
use strict;
use warnings;
Expand Down Expand Up @@ -62,6 +62,7 @@ sub mirror {
my $tempfile = $file . int(rand(2**31));
open my $fh, ">", $tempfile
or Carp::croak(qq/Error: Could not open temporary file $tempfile for downloading: $!/);
binmode $fh;
$args->{data_callback} = sub { print {$fh} $_[0] };
my $response = $self->request('GET', $url, $args);
close $fh
Expand Down Expand Up @@ -759,7 +760,7 @@ HTTP::Tiny - A small, simple, correct HTTP/1.1 client
=head1 VERSION
version 0.011
version 0.012
=head1 SYNOPSIS
Expand Down Expand Up @@ -1015,6 +1016,8 @@ always be set to C<close>.
Direct C<https> connections are supported only if L<IO::Socket::SSL> is
installed. There is no support for C<https> connections via proxy.
Any SSL certificate that matches the host is accepted -- SSL certificates
are not verified against certificate authorities.
=item *
Expand Down

0 comments on commit b06ddfb

Please sign in to comment.