diff options
author | David Golden <dagolden@cpan.org> | 2011-03-31 15:59:44 -0400 |
---|---|---|
committer | David Golden <dagolden@cpan.org> | 2011-04-01 07:37:12 -0400 |
commit | b06ddfb032ec04a7f4f68f11451de8f3453791aa (patch) | |
tree | 1a14c1b3b1e3e7a5b071ed63ec1f21f5de1791e8 /cpan/HTTP-Tiny | |
parent | 9780b8fa096f9ae13457f73834e67031becc97ce (diff) | |
download | perl-b06ddfb032ec04a7f4f68f11451de8f3453791aa.tar.gz |
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)
Diffstat (limited to 'cpan/HTTP-Tiny')
-rw-r--r-- | cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm index 3ceabf9574..b4f6bd733c 100644 --- a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm +++ b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm @@ -9,7 +9,7 @@ # package HTTP::Tiny; BEGIN { - $HTTP::Tiny::VERSION = '0.011'; + $HTTP::Tiny::VERSION = '0.012'; } use strict; use warnings; @@ -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 @@ -759,7 +760,7 @@ HTTP::Tiny - A small, simple, correct HTTP/1.1 client =head1 VERSION -version 0.011 +version 0.012 =head1 SYNOPSIS @@ -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 * |