Skip to content

Commit b06ddfb

Browse files
committed
Update HTTP::Tiny to CPAN version 0.012
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)
1 parent 9780b8f commit b06ddfb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Porting/Maintainers.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ package Maintainers;
984984
'HTTP::Tiny' =>
985985
{
986986
'MAINTAINER' => 'dagolden',
987-
'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.011.tar.gz',
987+
'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.012.tar.gz',
988988
'FILES' => q[cpan/HTTP-Tiny],
989989
'EXCLUDED' => [
990990
't/200_live.t',

cpan/HTTP-Tiny/lib/HTTP/Tiny.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
package HTTP::Tiny;
1111
BEGIN {
12-
$HTTP::Tiny::VERSION = '0.011';
12+
$HTTP::Tiny::VERSION = '0.012';
1313
}
1414
use strict;
1515
use warnings;
@@ -62,6 +62,7 @@ sub mirror {
6262
my $tempfile = $file . int(rand(2**31));
6363
open my $fh, ">", $tempfile
6464
or Carp::croak(qq/Error: Could not open temporary file $tempfile for downloading: $!/);
65+
binmode $fh;
6566
$args->{data_callback} = sub { print {$fh} $_[0] };
6667
my $response = $self->request('GET', $url, $args);
6768
close $fh
@@ -759,7 +760,7 @@ HTTP::Tiny - A small, simple, correct HTTP/1.1 client
759760
760761
=head1 VERSION
761762
762-
version 0.011
763+
version 0.012
763764
764765
=head1 SYNOPSIS
765766
@@ -1015,6 +1016,8 @@ always be set to C<close>.
10151016
10161017
Direct C<https> connections are supported only if L<IO::Socket::SSL> is
10171018
installed. There is no support for C<https> connections via proxy.
1019+
Any SSL certificate that matches the host is accepted -- SSL certificates
1020+
are not verified against certificate authorities.
10181021
10191022
=item *
10201023

0 commit comments

Comments
 (0)