-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH] Update HTTP::Tiny to CPAN version 0.012 #11223
Comments
From @xdgThis is a bug report for perl from dagolden@cpan.org, From 82baa73fd3d59e6a277f0c8e15c82abaef824353 Mon Sep 17 00:00:00 2001 HTTP::Tiny 0.011 fails to mirror files correctly on MSWin32, preventing [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 Porting/Maintainers.pl | 2 +- Inline Patchdiff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl
index 00728e9..0c73d10 100755
--- a/Porting/Maintainers.pl
+++ b/Porting/Maintainers.pl
@@ -984,7 +984,7 @@ use File::Glob qw(:case);
'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',
diff --git a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm
index 3ceabf9..b4f6bd7 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 *
--
Flags: Site configuration information for perl 5.12.3: Configured by david at Sat Mar 12 04:45:12 EST 2011. Summary of my perl5 (revision 5 version 12 subversion 3) configuration: Locally applied patches: @INC for perl 5.12.3: Environment for perl 5.12.3: |
@xdg - Status changed from 'new' to 'open' |
From @xdgHrmmph. In retrospect, I shouldn't have followed the "Super Quick Patch -- David |
From @xdg0001-Update-HTTP-Tiny-to-CPAN-version-0.012.patchFrom 82baa73fd3d59e6a277f0c8e15c82abaef824353 Mon Sep 17 00:00:00 2001
From: David Golden <dagolden@cpan.org>
Date: Thu, 31 Mar 2011 15:59:44 -0400
Subject: [PATCH] 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)
---
Porting/Maintainers.pl | 2 +-
cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl
index 00728e9..0c73d10 100755
--- a/Porting/Maintainers.pl
+++ b/Porting/Maintainers.pl
@@ -984,7 +984,7 @@ use File::Glob qw(:case);
'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',
diff --git a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm
index 3ceabf9..b4f6bd7 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 *
--
1.7.1
|
From [Unknown Contact. See original ticket]Applied to blead as commit b06ddfb per |
@xdg - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#87438 (status was 'resolved')
Searchable as RT87438$
The text was updated successfully, but these errors were encountered: