Blame SOURCES/libwww-perl-6.19-Accept-proxy-URLs-with-IPv6-host-names.patch

e1f70d
From 572538753601755b4b6acace1d445bc8e1cc10c8 Mon Sep 17 00:00:00 2001
e1f70d
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
e1f70d
Date: Thu, 16 Feb 2017 14:00:57 +0100
e1f70d
Subject: [PATCH] Accept proxy URLs with IPv6 host names
e1f70d
MIME-Version: 1.0
e1f70d
Content-Type: text/plain; charset=UTF-8
e1f70d
Content-Transfer-Encoding: 8bit
e1f70d
e1f70d
<https://rt.cpan.org/Public/Bug/Display.html?id=94654>
e1f70d
e1f70d
Signed-off-by: Petr Písař <ppisar@redhat.com>
e1f70d
---
e1f70d
 lib/LWP/UserAgent.pm | 2 +-
e1f70d
 1 file changed, 1 insertion(+), 1 deletion(-)
e1f70d
e1f70d
diff --git a/lib/LWP/UserAgent.pm b/lib/LWP/UserAgent.pm
e1f70d
index ea03157..8549808 100644
e1f70d
--- a/lib/LWP/UserAgent.pm
e1f70d
+++ b/lib/LWP/UserAgent.pm
e1f70d
@@ -1039,7 +1039,7 @@ sub proxy
e1f70d
         my $url = shift;
e1f70d
         if (defined($url) && length($url)) {
e1f70d
             Carp::croak("Proxy must be specified as absolute URI; '$url' is not") unless $url =~ /^$URI::scheme_re:/;
e1f70d
-            Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://\w,;
e1f70d
+            Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://(?:\w|\[),;
e1f70d
         }
e1f70d
         $self->{proxy}{$key} = $url;
e1f70d
         $self->set_my_handler("request_preprepare", \&_need_proxy)
e1f70d
-- 
e1f70d
2.7.4
e1f70d