Imported Upstream version 6.50 upstream/6.50
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 21 Jul 2022 02:28:26 +0000 (11:28 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 21 Jul 2022 02:28:26 +0000 (11:28 +0900)
33 files changed:
Changes
MANIFEST
META.json
META.yml
Makefile.PL
dist.ini
lib/LWP.pm
lib/LWP/Authen/Basic.pm
lib/LWP/Authen/Digest.pm
lib/LWP/Authen/Ntlm.pm
lib/LWP/ConnCache.pm
lib/LWP/Debug.pm
lib/LWP/Debug/TraceHTTP.pm
lib/LWP/DebugFile.pm
lib/LWP/MemberMixin.pm
lib/LWP/Protocol.pm
lib/LWP/Protocol/cpan.pm
lib/LWP/Protocol/data.pm
lib/LWP/Protocol/file.pm
lib/LWP/Protocol/ftp.pm
lib/LWP/Protocol/gopher.pm
lib/LWP/Protocol/http.pm
lib/LWP/Protocol/loopback.pm
lib/LWP/Protocol/mailto.pm
lib/LWP/Protocol/nntp.pm
lib/LWP/Protocol/nogo.pm
lib/LWP/RobotUA.pm
lib/LWP/Simple.pm
lib/LWP/UserAgent.pm
t/00-report-prereqs.t
t/base/ua.t
xt/author/pod-spell.t
xt/release/changes_has_content.t

diff --git a/Changes b/Changes
index 2c86bc3912e2702bbfd9b7c1f934037a7db03719..925828dd7e65db0023c52b545628ac31268f8c8b 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 Change history for libwww-perl
 
+6.50      2020-12-16 18:35:08Z
+    - Fix RT #81381 - Make LWP::UserAgent robust to 5.17.6/5.18 hash
+      randomization (GH#355) (Yves Orton and Olaf Alders)
+
 6.49      2020-09-24 00:27:56Z
     - Require network testing enabled for t/redirect.t (GH#351) (Olaf Alders)
 
index ec888ef005607d368fbfa353c436e9b5b524e91e..97bac06dbac0ef881b4011830aa4225f189f6e8a 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.015.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.017.
 CONTRIBUTING.md
 Changes
 INSTALL
index 4e81b2bd28adfc9ad6fbeba1a0cbb3c5abd4b237..b0f08296229d111b1e025e9f1bbb31ef990b2256 100644 (file)
--- a/META.json
+++ b/META.json
@@ -4,7 +4,7 @@
       "Gisle Aas <gisle@activestate.com>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "Dist::Zilla version 6.015, CPAN::Meta::Converter version 2.150010",
+   "generated_by" : "Dist::Zilla version 6.017, CPAN::Meta::Converter version 2.150010",
    "license" : [
       "perl_5"
    ],
    "provides" : {
       "LWP" : {
          "file" : "lib/LWP.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Authen::Basic" : {
          "file" : "lib/LWP/Authen/Basic.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Authen::Digest" : {
          "file" : "lib/LWP/Authen/Digest.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Authen::Ntlm" : {
          "file" : "lib/LWP/Authen/Ntlm.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::ConnCache" : {
          "file" : "lib/LWP/ConnCache.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Debug" : {
          "file" : "lib/LWP/Debug.pm",
-         "version" : "6.49",
+         "version" : "6.50",
          "x_deprecated" : 1
       },
       "LWP::Debug::TraceHTTP" : {
          "file" : "lib/LWP/Debug/TraceHTTP.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::DebugFile" : {
          "file" : "lib/LWP/DebugFile.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::MemberMixin" : {
          "file" : "lib/LWP/MemberMixin.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol" : {
          "file" : "lib/LWP/Protocol.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::cpan" : {
          "file" : "lib/LWP/Protocol/cpan.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::data" : {
          "file" : "lib/LWP/Protocol/data.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::file" : {
          "file" : "lib/LWP/Protocol/file.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::ftp" : {
          "file" : "lib/LWP/Protocol/ftp.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::gopher" : {
          "file" : "lib/LWP/Protocol/gopher.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::http" : {
          "file" : "lib/LWP/Protocol/http.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::loopback" : {
          "file" : "lib/LWP/Protocol/loopback.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::mailto" : {
          "file" : "lib/LWP/Protocol/mailto.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::nntp" : {
          "file" : "lib/LWP/Protocol/nntp.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Protocol::nogo" : {
          "file" : "lib/LWP/Protocol/nogo.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::RobotUA" : {
          "file" : "lib/LWP/RobotUA.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::Simple" : {
          "file" : "lib/LWP/Simple.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       },
       "LWP::UserAgent" : {
          "file" : "lib/LWP/UserAgent.pm",
-         "version" : "6.49"
+         "version" : "6.50"
       }
    },
    "release_status" : "stable",
       "x_IRC" : "irc://irc.perl.org/#lwp",
       "x_MailingList" : "mailto:libwww@perl.org"
    },
-   "version" : "6.49",
+   "version" : "6.50",
    "x_Dist_Zilla" : {
       "perl" : {
-         "version" : "5.026001"
+         "version" : "5.030003"
       },
       "plugins" : [
          {
                }
             },
             "name" : "Git::GatherDir",
-            "version" : "2.046"
+            "version" : "2.047"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaConfig",
             "name" : "MetaConfig",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaProvides::Package",
                      {
                         "class" : "Dist::Zilla::Plugin::FinderCode",
                         "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM",
-                        "version" : "6.015"
+                        "version" : "6.017"
                      }
                   ],
                   "include_underscores" : 0
                },
                "Dist::Zilla::Role::ModuleMetadata" : {
                   "Module::Metadata" : "1.000037",
-                  "version" : "0.004"
+                  "version" : "0.006"
                }
             },
             "name" : "MetaProvides::Package",
          {
             "class" : "Dist::Zilla::Plugin::MetaNoIndex",
             "name" : "MetaNoIndex",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaYAML",
             "name" : "MetaYAML",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaJSON",
             "name" : "MetaJSON",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaResources",
             "name" : "MetaResources",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::Deprecated",
             "class" : "Dist::Zilla::Plugin::Git::Contributors",
             "config" : {
                "Dist::Zilla::Plugin::Git::Contributors" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.2",
                   "include_authors" : 0,
                   "include_releaser" : 1,
                   "order_by" : "name",
          {
             "class" : "Dist::Zilla::Plugin::Manifest",
             "name" : "Manifest",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::License",
             "name" : "License",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::InstallGuide",
             "config" : {
                "Dist::Zilla::Role::ModuleMetadata" : {
                   "Module::Metadata" : "1.000037",
-                  "version" : "0.004"
+                  "version" : "0.006"
                }
             },
             "name" : "InstallGuide",
          {
             "class" : "Dist::Zilla::Plugin::ExecDir",
             "name" : "ExecDir",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::Prereqs::FromCPANfile",
             "config" : {
                "Dist::Zilla::Role::ModuleMetadata" : {
                   "Module::Metadata" : "1.000037",
-                  "version" : "0.004"
+                  "version" : "0.006"
                }
             },
             "name" : "DynamicPrereqs",
-            "version" : "0.037"
+            "version" : "0.039"
          },
          {
             "class" : "Dist::Zilla::Plugin::MakeMaker::Awesome",
             "config" : {
                "Dist::Zilla::Plugin::MakeMaker" : {
                   "make_path" : "make",
-                  "version" : "6.015"
+                  "version" : "6.017"
                },
                "Dist::Zilla::Role::TestRunner" : {
                   "default_jobs" : "4",
-                  "version" : "6.015"
+                  "version" : "6.017"
                }
             },
             "name" : "MakeMaker::Awesome",
          {
             "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs",
             "name" : "Test::ReportPrereqs",
-            "version" : "0.027"
+            "version" : "0.028"
          },
          {
             "class" : "Dist::Zilla::Plugin::Test::Compile",
          {
             "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
             "name" : "PodSyntaxTests",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable",
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.2",
                   "repo_root" : "."
                }
             },
             "name" : "Git::Check",
-            "version" : "2.046"
+            "version" : "2.047"
          },
          {
             "class" : "Dist::Zilla::Plugin::CheckStrictVersion",
          {
             "class" : "Dist::Zilla::Plugin::TestRelease",
             "name" : "TestRelease",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::UploadToCPAN",
             "name" : "UploadToCPAN",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod",
                }
             },
             "name" : "CopyFilesFromRelease",
-            "version" : "0.006"
+            "version" : "0.007"
          },
          {
             "class" : "Dist::Zilla::Plugin::Prereqs",
                }
             },
             "name" : "@Git::VersionManager/pluginbundle version",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::RewriteVersion::Transitional",
                }
             },
             "name" : "@Git::VersionManager/CopyFilesFromRelease",
-            "version" : "0.006"
+            "version" : "0.007"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Commit",
             "config" : {
                "Dist::Zilla::Plugin::Git::Commit" : {
                   "add_files_in" : [],
-                  "commit_msg" : "v%V%n%n%c"
+                  "commit_msg" : "v%V%n%n%c",
+                  "signoff" : 0
                },
                "Dist::Zilla::Role::Git::DirtyFiles" : {
                   "allow_dirty" : [
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.2",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
                }
             },
             "name" : "@Git::VersionManager/release snapshot",
-            "version" : "2.046"
+            "version" : "2.047"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Tag",
                   "branch" : null,
                   "changelog" : "Changes",
                   "signed" : 0,
-                  "tag" : "v6.49",
+                  "tag" : "v6.50",
                   "tag_format" : "v%V",
                   "tag_message" : "v%V"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.2",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
                }
             },
             "name" : "@Git::VersionManager/Git::Tag",
-            "version" : "2.046"
+            "version" : "2.047"
          },
          {
             "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional",
          {
             "class" : "Dist::Zilla::Plugin::NextRelease",
             "name" : "@Git::VersionManager/NextRelease",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Commit",
             "config" : {
                "Dist::Zilla::Plugin::Git::Commit" : {
                   "add_files_in" : [],
-                  "commit_msg" : "increment $VERSION after %v release"
+                  "commit_msg" : "increment $VERSION after %v release",
+                  "signoff" : 0
                },
                "Dist::Zilla::Role::Git::DirtyFiles" : {
                   "allow_dirty" : [
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.2",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
                }
             },
             "name" : "@Git::VersionManager/post-release commit",
-            "version" : "2.046"
+            "version" : "2.047"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Push",
                   "remotes_must_exist" : 1
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.2",
                   "repo_root" : "."
                }
             },
             "name" : "Git::Push",
-            "version" : "2.046"
+            "version" : "2.047"
          },
          {
             "class" : "Dist::Zilla::Plugin::ConfirmRelease",
             "name" : "ConfirmRelease",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":InstallModules",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":IncModules",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":TestFiles",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ExtraTestFiles",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ExecFiles",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":PerlExecFiles",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ShareFiles",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":MainModule",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":AllFiles",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":NoFiles",
-            "version" : "6.015"
+            "version" : "6.017"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM",
-            "version" : "6.015"
+            "version" : "6.017"
          }
       ],
       "zilla" : {
          "config" : {
             "is_trial" : 0
          },
-         "version" : "6.015"
+         "version" : "6.017"
       }
    },
    "x_authority" : "cpan:LWWWP",
       "Vyacheslav Matyukhin <mmcleric@yandex-team.ru>",
       "Yuri Karaban <tech@askold.net>",
       "Yury Zavarin <yury.zavarin@gmail.com>",
+      "Yves Orton <yves.orton@booking.com>",
       "Zefram <zefram@fysh.org>"
    ],
-   "x_generated_by_perl" : "v5.26.1",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 4.04",
+   "x_generated_by_perl" : "v5.30.3",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.19",
    "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
 }
 
index 9c5d3d71ea131eae9b000e9ec4fca31ae124da34..073725de765e13817e8e01488ef1f112ec63041f 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -17,7 +17,7 @@ configure_requires:
   Getopt::Long: '0'
   Module::Metadata: '0'
 dynamic_config: 1
-generated_by: 'Dist::Zilla version 6.015, CPAN::Meta::Converter version 2.150010'
+generated_by: 'Dist::Zilla version 6.017, CPAN::Meta::Converter version 2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -30,74 +30,74 @@ no_index:
 provides:
   LWP:
     file: lib/LWP.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Authen::Basic:
     file: lib/LWP/Authen/Basic.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Authen::Digest:
     file: lib/LWP/Authen/Digest.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Authen::Ntlm:
     file: lib/LWP/Authen/Ntlm.pm
-    version: '6.49'
+    version: '6.50'
   LWP::ConnCache:
     file: lib/LWP/ConnCache.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Debug:
     file: lib/LWP/Debug.pm
-    version: '6.49'
+    version: '6.50'
     x_deprecated: 1
   LWP::Debug::TraceHTTP:
     file: lib/LWP/Debug/TraceHTTP.pm
-    version: '6.49'
+    version: '6.50'
   LWP::DebugFile:
     file: lib/LWP/DebugFile.pm
-    version: '6.49'
+    version: '6.50'
   LWP::MemberMixin:
     file: lib/LWP/MemberMixin.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol:
     file: lib/LWP/Protocol.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::cpan:
     file: lib/LWP/Protocol/cpan.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::data:
     file: lib/LWP/Protocol/data.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::file:
     file: lib/LWP/Protocol/file.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::ftp:
     file: lib/LWP/Protocol/ftp.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::gopher:
     file: lib/LWP/Protocol/gopher.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::http:
     file: lib/LWP/Protocol/http.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::loopback:
     file: lib/LWP/Protocol/loopback.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::mailto:
     file: lib/LWP/Protocol/mailto.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::nntp:
     file: lib/LWP/Protocol/nntp.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Protocol::nogo:
     file: lib/LWP/Protocol/nogo.pm
-    version: '6.49'
+    version: '6.50'
   LWP::RobotUA:
     file: lib/LWP/RobotUA.pm
-    version: '6.49'
+    version: '6.50'
   LWP::Simple:
     file: lib/LWP/Simple.pm
-    version: '6.49'
+    version: '6.50'
   LWP::UserAgent:
     file: lib/LWP/UserAgent.pm
-    version: '6.49'
+    version: '6.50'
 requires:
   Digest::MD5: '0'
   Encode: '2.12'
@@ -134,10 +134,10 @@ resources:
   bugtracker: https://github.com/libwww-perl/libwww-perl/issues
   homepage: https://github.com/libwww-perl/libwww-perl
   repository: https://github.com/libwww-perl/libwww-perl.git
-version: '6.49'
+version: '6.50'
 x_Dist_Zilla:
   perl:
-    version: '5.026001'
+    version: '5.030003'
   plugins:
     -
       class: Dist::Zilla::Plugin::Git::GatherDir
@@ -156,11 +156,11 @@ x_Dist_Zilla:
         Dist::Zilla::Plugin::Git::GatherDir:
           include_untracked: 0
       name: Git::GatherDir
-      version: '2.046'
+      version: '2.047'
     -
       class: Dist::Zilla::Plugin::MetaConfig
       name: MetaConfig
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::MetaProvides::Package
       config:
@@ -169,7 +169,7 @@ x_Dist_Zilla:
             -
               class: Dist::Zilla::Plugin::FinderCode
               name: MetaProvides::Package/AUTOVIV/:InstallModulesPM
-              version: '6.015'
+              version: '6.017'
           include_underscores: 0
         Dist::Zilla::Role::MetaProvider::Provider:
           $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002004'
@@ -178,25 +178,25 @@ x_Dist_Zilla:
           meta_noindex: '1'
         Dist::Zilla::Role::ModuleMetadata:
           Module::Metadata: '1.000037'
-          version: '0.004'
+          version: '0.006'
       name: MetaProvides::Package
       version: '2.004003'
     -
       class: Dist::Zilla::Plugin::MetaNoIndex
       name: MetaNoIndex
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::MetaYAML
       name: MetaYAML
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::MetaJSON
       name: MetaJSON
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::MetaResources
       name: MetaResources
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::Deprecated
       config:
@@ -210,7 +210,7 @@ x_Dist_Zilla:
       class: Dist::Zilla::Plugin::Git::Contributors
       config:
         Dist::Zilla::Plugin::Git::Contributors:
-          git_version: 2.28.0
+          git_version: 2.29.2
           include_authors: 0
           include_releaser: 1
           order_by: name
@@ -228,23 +228,23 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::Manifest
       name: Manifest
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::License
       name: License
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::InstallGuide
       config:
         Dist::Zilla::Role::ModuleMetadata:
           Module::Metadata: '1.000037'
-          version: '0.004'
+          version: '0.006'
       name: InstallGuide
       version: '1.200013'
     -
       class: Dist::Zilla::Plugin::ExecDir
       name: ExecDir
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::Prereqs::FromCPANfile
       name: Prereqs::FromCPANfile
@@ -254,18 +254,18 @@ x_Dist_Zilla:
       config:
         Dist::Zilla::Role::ModuleMetadata:
           Module::Metadata: '1.000037'
-          version: '0.004'
+          version: '0.006'
       name: DynamicPrereqs
-      version: '0.037'
+      version: '0.039'
     -
       class: Dist::Zilla::Plugin::MakeMaker::Awesome
       config:
         Dist::Zilla::Plugin::MakeMaker:
           make_path: make
-          version: '6.015'
+          version: '6.017'
         Dist::Zilla::Role::TestRunner:
           default_jobs: '4'
-          version: '6.015'
+          version: '6.017'
       name: MakeMaker::Awesome
       version: '0.48'
     -
@@ -279,7 +279,7 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::Test::ReportPrereqs
       name: Test::ReportPrereqs
-      version: '0.027'
+      version: '0.028'
     -
       class: Dist::Zilla::Plugin::Test::Compile
       config:
@@ -339,7 +339,7 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::PodSyntaxTests
       name: PodSyntaxTests
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable
       name: Test::Pod::Coverage::Configurable
@@ -481,10 +481,10 @@ x_Dist_Zilla:
           allow_dirty_match: []
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.2
           repo_root: .
       name: Git::Check
-      version: '2.046'
+      version: '2.047'
     -
       class: Dist::Zilla::Plugin::CheckStrictVersion
       name: CheckStrictVersion
@@ -507,11 +507,11 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::TestRelease
       name: TestRelease
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::UploadToCPAN
       name: UploadToCPAN
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::ReadmeAnyFromPod
       config:
@@ -528,7 +528,7 @@ x_Dist_Zilla:
             - META.json
           match: []
       name: CopyFilesFromRelease
-      version: '0.006'
+      version: '0.007'
     -
       class: Dist::Zilla::Plugin::Prereqs
       config:
@@ -536,7 +536,7 @@ x_Dist_Zilla:
           phase: develop
           type: recommends
       name: '@Git::VersionManager/pluginbundle version'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::RewriteVersion::Transitional
       config:
@@ -562,13 +562,14 @@ x_Dist_Zilla:
             - Changes
           match: []
       name: '@Git::VersionManager/CopyFilesFromRelease'
-      version: '0.006'
+      version: '0.007'
     -
       class: Dist::Zilla::Plugin::Git::Commit
       config:
         Dist::Zilla::Plugin::Git::Commit:
           add_files_in: []
           commit_msg: v%V%n%n%c
+          signoff: 0
         Dist::Zilla::Role::Git::DirtyFiles:
           allow_dirty:
             - Changes
@@ -578,12 +579,12 @@ x_Dist_Zilla:
           allow_dirty_match: []
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.2
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
       name: '@Git::VersionManager/release snapshot'
-      version: '2.046'
+      version: '2.047'
     -
       class: Dist::Zilla::Plugin::Git::Tag
       config:
@@ -591,16 +592,16 @@ x_Dist_Zilla:
           branch: ~
           changelog: Changes
           signed: 0
-          tag: v6.49
+          tag: v6.50
           tag_format: v%V
           tag_message: v%V
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.2
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
       name: '@Git::VersionManager/Git::Tag'
-      version: '2.046'
+      version: '2.047'
     -
       class: Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional
       config:
@@ -616,13 +617,14 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::NextRelease
       name: '@Git::VersionManager/NextRelease'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::Git::Commit
       config:
         Dist::Zilla::Plugin::Git::Commit:
           add_files_in: []
           commit_msg: 'increment $VERSION after %v release'
+          signoff: 0
         Dist::Zilla::Role::Git::DirtyFiles:
           allow_dirty:
             - Build.PL
@@ -632,12 +634,12 @@ x_Dist_Zilla:
             - (?^:^lib/.*\.pm$)
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.2
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
       name: '@Git::VersionManager/post-release commit'
-      version: '2.046'
+      version: '2.047'
     -
       class: Dist::Zilla::Plugin::Git::Push
       config:
@@ -646,63 +648,63 @@ x_Dist_Zilla:
             - origin
           remotes_must_exist: 1
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.2
           repo_root: .
       name: Git::Push
-      version: '2.046'
+      version: '2.047'
     -
       class: Dist::Zilla::Plugin::ConfirmRelease
       name: ConfirmRelease
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':InstallModules'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':IncModules'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':TestFiles'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ExtraTestFiles'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ExecFiles'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':PerlExecFiles'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ShareFiles'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':MainModule'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':AllFiles'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':NoFiles'
-      version: '6.015'
+      version: '6.017'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: MetaProvides::Package/AUTOVIV/:InstallModulesPM
-      version: '6.015'
+      version: '6.017'
   zilla:
     class: Dist::Zilla::Dist::Builder
     config:
       is_trial: '0'
-    version: '6.015'
+    version: '6.017'
 x_authority: cpan:LWWWP
 x_contributors:
   - 'Adam Kennedy <adamk@cpan.org>'
@@ -804,7 +806,8 @@ x_contributors:
   - 'Vyacheslav Matyukhin <mmcleric@yandex-team.ru>'
   - 'Yuri Karaban <tech@askold.net>'
   - 'Yury Zavarin <yury.zavarin@gmail.com>'
+  - 'Yves Orton <yves.orton@booking.com>'
   - 'Zefram <zefram@fysh.org>'
-x_generated_by_perl: v5.26.1
-x_serialization_backend: 'YAML::Tiny version 1.70'
+x_generated_by_perl: v5.30.3
+x_serialization_backend: 'YAML::Tiny version 1.73'
 x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
index f7ba50c31e0d0beac4b615e3900fd1ff88e65597..6093d9a33c387121cab582e908026ce7b030d42d 100644 (file)
@@ -86,7 +86,7 @@ my %WriteMakefileArgs = (
     "Test::Needs" => 0,
     "Test::RequiresInternet" => 0
   },
-  "VERSION" => "6.49",
+  "VERSION" => "6.50",
   "test" => {
     "TESTS" => "t/*.t t/base/*.t t/base/protocols/*.t t/leak/*.t t/local/*.t t/robot/*.t"
   }
@@ -135,7 +135,7 @@ my %FallbackPrereqs = (
   "warnings" => 0
 );
 
-# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.037
+# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.039
 requires('HTTP::Status', '6.18') if has_module('HTTP::Status', '6.17');
 
 unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) {
@@ -149,7 +149,7 @@ delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
 
 WriteMakefile(%WriteMakefileArgs);
 
-# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.037
+# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.039
 sub _add_prereq {
   my ($mm_key, $module, $version_or_range) = @_;
   $version_or_range ||= 0;
@@ -157,7 +157,7 @@ sub _add_prereq {
     if exists $WriteMakefileArgs{$mm_key}{$module}
       and $WriteMakefileArgs{$mm_key}{$module} ne '0'
       and $WriteMakefileArgs{$mm_key}{$module} ne $version_or_range;
-  warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$mm_key}{$module}) -- need to do a sane metamerge!"
+  warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$module}) -- need to do a sane metamerge!"
     if exists $FallbackPrereqs{$module} and $FallbackPrereqs{$module} ne '0'
         and $FallbackPrereqs{$module} ne $version_or_range;
   $WriteMakefileArgs{$mm_key}{$module} = $FallbackPrereqs{$module} = $version_or_range;
index 8e585764c3c0262543d0902f53a03caf41aeb5a1..9ba7817e85d23a72bcff3e979999613a208bf37f 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -42,7 +42,7 @@ authority = cpan:LWWWP
 [Prereqs::FromCPANfile]
 
 [DynamicPrereqs]
-:version = 0.018
+:version = 0.039
 ; HTTP::Status 6.17 was buggy
 -body = requires('HTTP::Status', '6.18') if has_module('HTTP::Status', '6.17');
 
index a994e3652fc8a97a2fd405aea75bee5f803e65cc..6eee45ce0e77c95309b36ad4f96c2ad03a178334 100644 (file)
@@ -1,6 +1,6 @@
 package LWP;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require LWP::UserAgent;  # this should load everything you need
 
index 4ce5322214a4021902cd2dcb5b6224a3131d2000..5134f940b29baaa29341c4264ae2ce815ad2dcae 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Authen::Basic;
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require Encode;
 require MIME::Base64;
index da7916404ccbdbfc025fefd140627a868b29de03..d40f939227d5b172d2d8fa7a9e2d458ca9710d9e 100644 (file)
@@ -3,7 +3,7 @@ package LWP::Authen::Digest;
 use strict;
 use base 'LWP::Authen::Basic';
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require Digest::MD5;
 
index 56a85372437f716b8b56f477ce1b552c947a39ae..fe48515d6ab3ca233b42a998096c98e083230845 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Authen::Ntlm;
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 use Authen::NTLM "1.02";
 use MIME::Base64 "2.12";
index 1adfa939b77cc36247d04006c6ee9278ab796353..395b67a25e042a3d08582ea673fa22b8fef45441 100644 (file)
@@ -2,7 +2,7 @@ package LWP::ConnCache;
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 our $DEBUG;
 
 sub new {
index 127f3eac05cbb26c5720de1d629e21117179755b..e49edb7905400fb1a31975ddef34060a17f6cd35 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::Debug;    # legacy
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require Exporter;
 our @ISA       = qw(Exporter);
index d14ca687aef2c96ef7e3624eca2a0cef00924278..f78a66088abd27d3cc43d6a2c5864d3884eab762 100644 (file)
@@ -11,7 +11,7 @@ package LWP::Debug::TraceHTTP;
 use strict;
 use base 'LWP::Protocol::http';
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 package # hide from PAUSE
     LWP::Debug::TraceHTTP::Socket;
index 957564a1b496a7b38b79994835eef90fa3112328..7825c9b0700cc7550cdbad1e858b39ec7efde939 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::DebugFile;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 # legacy stub
 
index 1c27810b1f2cea1cdfa3794e9e18a4ea4a00f809..a3fc188c929eabc13e41068d08ac14cdab236a17 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::MemberMixin;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 sub _elem {
     my $self = shift;
index 3ea40599ea3cf0d3ef713909d53b814be08fd685..265c02a0779231e814bb556b9a338edc04a56891 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol;
 
 use base 'LWP::MemberMixin';
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 use strict;
 use Carp ();
index e9ff25f391b12172ee693da51d32ef4750c045e2..6a7c6e9cdaff8d9a5ebf684e63f4918f46f9bdf6 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 
 use base qw(LWP::Protocol);
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require URI;
 require HTTP::Status;
index 7e157e89470e68ecfcf81e50e7464572c2987adb..8ae2a163a9610843e04b43f62812f0ca6291661d 100644 (file)
@@ -4,7 +4,7 @@ package LWP::Protocol::data;
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require HTTP::Response;
 require HTTP::Status;
index 3252f8a70d1e2cf0d1af3f9a218bdeaedd898e32..b1fca8f332f44746a5eec53168d0d15f9c0d096b 100644 (file)
@@ -4,7 +4,7 @@ use base qw(LWP::Protocol);
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require LWP::MediaTypes;
 require HTTP::Request;
index fb4dca6264d2d8efc965d99d8baa78916eeab858..faed94ec99e66bc2066c1a61ae3e5e43b7f348f0 100644 (file)
@@ -5,7 +5,7 @@ package LWP::Protocol::ftp;
 use base qw(LWP::Protocol);
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 use Carp            ();
 use HTTP::Status    ();
index da0e89435e01a19518f99f4e7c7b79ec5ad9f2a7..08b29e05b879a632ac6d0193f4d51100bc35e35d 100644 (file)
@@ -9,7 +9,7 @@ package LWP::Protocol::gopher;
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require HTTP::Response;
 require HTTP::Status;
index 175ad03e07ec8129eb36cd5215863804fb445edc..3585245be583156b25e7a7e0b5d934e3ebfc5227 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol::http;
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require HTTP::Response;
 require HTTP::Status;
index 12a8f9b878ea842633cda7aa0f7c7446de2a4b88..5621b83d2f542e6ffc50a0c7643f0e1024ea3d02 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol::loopback;
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require HTTP::Response;
 
index 28d262ea612202bb9ac867b0d5a82c2827ae4933..93693b6d810a2949ca1e454f08405639d88668e7 100644 (file)
@@ -11,7 +11,7 @@ require HTTP::Status;
 use Carp;
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 use base qw(LWP::Protocol);
 our $SENDMAIL;
index 08a63e6b204d28e557c3a807ca45385360cf7186..124481a216160e862a62f5781ccd965025714b94 100644 (file)
@@ -4,7 +4,7 @@ package LWP::Protocol::nntp;
 
 use base qw(LWP::Protocol);
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require HTTP::Response;
 require HTTP::Status;
index 88a89ba6afd68bfe7caa5a57ba9fa0ef0f1c099f..6023bd72b70cc2cf0dcf8895b45bab573893e557 100644 (file)
@@ -7,7 +7,7 @@ package LWP::Protocol::nogo;
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require HTTP::Response;
 require HTTP::Status;
index f7d7065602dad7f1f9ba38476562e0a5cad393da..bbac401e280bc7e67336e31c301e558c2eebf2d5 100644 (file)
@@ -2,7 +2,7 @@ package LWP::RobotUA;
 
 use base qw(LWP::UserAgent);
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require WWW::RobotRules;
 require HTTP::Request;
index 6e343156427dab7a7ce6abf079e6fee15a6bd3d8..bcbb2a3b3113407c77baf1a0fe695c5102d370b4 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Simple;
 
 use strict;
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 require Exporter;
 
index 3cc7c5dd5ec158766b52f74402afb0ba624a3449..db673e1ad67b63d01d66ade62617738da5c4c9b5 100644 (file)
@@ -15,7 +15,7 @@ use LWP::Protocol ();
 use Scalar::Util qw(blessed);
 use Try::Tiny qw(try catch);
 
-our $VERSION = '6.49';
+our $VERSION = '6.50';
 
 sub new
 {
@@ -734,7 +734,8 @@ sub ssl_opts {
        return $old;
     }
 
-    return keys %{$self->{ssl_opts}};
+    my @opts= sort keys %{$self->{ssl_opts}};
+    return @opts;
 }
 
 sub parse_head {
@@ -886,9 +887,8 @@ sub get_my_handler {
             $init->(\%spec);
         }
         elsif (ref($init) eq "HASH") {
-            while (my($k, $v) = each %$init) {
-                $spec{$k} = $v;
-            }
+            $spec{$_}= $init->{$_}
+                for keys %$init;
         }
         $spec{callback} ||= sub {};
         $spec{line} ||= join(":", (caller)[1,2]);
@@ -1098,15 +1098,28 @@ sub env_proxy {
     my ($self) = @_;
     require Encode;
     require Encode::Locale;
-    my($k,$v);
-    while(($k, $v) = each %ENV) {
-       if ($ENV{REQUEST_METHOD}) {
-           # Need to be careful when called in the CGI environment, as
-           # the HTTP_PROXY variable is under control of that other guy.
-           next if $k =~ /^HTTP_/;
-           $k = "HTTP_PROXY" if $k eq "CGI_HTTP_PROXY";
-       }
+    my $env_request_method= $ENV{REQUEST_METHOD};
+    my %seen;
+    foreach my $k (sort keys %ENV) {
+        my $real_key= $k;
+        my $v= $ENV{$k}
+            or next;
+        if ( $env_request_method ) {
+            # Need to be careful when called in the CGI environment, as
+            # the HTTP_PROXY variable is under control of that other guy.
+            next if $k =~ /^HTTP_/;
+            $k = "HTTP_PROXY" if $k eq "CGI_HTTP_PROXY";
+        }
        $k = lc($k);
+        if (my $from_key= $seen{$k}) {
+            warn "Environment contains multiple differing definitions for '$k'.\n".
+                 "Using value from '$from_key' ($ENV{$from_key}) and ignoring '$real_key' ($v)"
+                if $v ne $ENV{$from_key};
+            next;
+        } else {
+            $seen{$k}= $real_key;
+        }
+
        next unless $k =~ /^(.*)_proxy$/;
        $k = $1;
        if ($k eq 'no') {
index c72183a1bebf16b344dc1a660fee5207cee16e05..c3a94ca1da25657cbfbae83860d3d64ac9c030ff 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.027
+# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028
 
 use Test::More tests => 1;
 
@@ -188,6 +188,6 @@ if ( @dep_errors ) {
     );
 }
 
-pass;
+pass('Reported prereqs');
 
 # vim: ts=4 sts=4 sw=4 et:
index d19d0ebc770dced78441b80b559c42e8833c6603..7ea37b3db1c8e7b3e5ca8bd677b7a2e82108cedb 100644 (file)
@@ -4,8 +4,6 @@ use HTTP::Request ();
 use LWP::UserAgent ();
 use Test::More;
 
-plan tests => 46;
-
 # Prevent environment from interfering with test:
 delete $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME};
 delete $ENV{HTTPS_CA_FILE};
@@ -164,11 +162,30 @@ is($ua->ssl_opts("verify_hostname"), 1, '$ua->ssl_opts("verify_hostname")');
 
 delete @ENV{grep /_proxy$/i, keys %ENV}; # clean out any proxy vars
 
-$ENV{http_proxy} = "http://example.com";
-$ua = LWP::UserAgent->new;
-is($ua->proxy('http'),                undef, "\$ua->proxy('http')");
-$ua = LWP::UserAgent->new(env_proxy => 1);;
-is($ua->proxy('http'), "http://example.com", "\$ua->proxy('http')");
+{
+    $ENV{HTTP_PROXY}= "http://example.com";
+    $ENV{http_proxy}= "http://otherexample.com";
+    my @warn;
+    local $SIG{__WARN__}= sub { my ($msg)= @_; $msg=~s/ at .*\z//s; push @warn, $msg };
+    # test that we get "HTTP_PROXY" when it is set and differs from "http_proxy".
+    $ua = LWP::UserAgent->new;
+    is($ua->proxy('http'), undef);
+    $ua = LWP::UserAgent->new(env_proxy => 1);
+    is($ua->proxy('http'), "http://example.com", q{proxy('http') returns URL});
+    is($warn[0],"Environment contains multiple differing definitions for 'http_proxy'.\n"
+              ."Using value from 'HTTP_PROXY' (http://example.com) and ignoring 'http_proxy' (http://otherexample.com)");
+}
+
+# test that if only one of the two is set we can handle either.
+for my $type ('http_proxy', 'HTTP_PROXY') {
+    delete $ENV{HTTP_PROXY};
+    delete $ENV{http_proxy};
+    $ENV{$type} = "http://example.com";
+    $ua = LWP::UserAgent->new;
+    is($ua->proxy('http'), undef, q{proxy('http') returns undef} );
+    $ua = LWP::UserAgent->new(env_proxy => 1);
+    is($ua->proxy('http'), "http://example.com", q{proxy('http') returns URL});
+}
 
 $ENV{PERL_LWP_ENV_PROXY} = 1;
 $ua = LWP::UserAgent->new();
@@ -184,3 +201,5 @@ $ua = LWP::UserAgent->new(keep_alive => 0);
 is($ua->conn_cache, undef, "\$ua->conn_cache");
 $ua = LWP::UserAgent->new(keep_alive => 1);
 is($ua->conn_cache->total_capacity, 1, "\$ua->conn_cache->total_capacity");
+
+done_testing();
index 39c57c320ec2f7f6a87b2059aa01dba7092c1457..80ee819bd4f1545ca35c911dfb0f868da09515bb 100644 (file)
@@ -200,6 +200,7 @@ Olly
 Ondrej
 Onken
 Oosten
+Orton
 Oschwald
 Paaske
 Panchenko
@@ -290,6 +291,7 @@ Yitzchak
 Yoshinari
 Yuri
 Yury
+Yves
 Zajac
 Zakharevich
 Zavarin
@@ -412,5 +414,6 @@ waif
 wfmann
 wolfsage
 yury
+yves
 zefram
 zigorou
index d358f9955fd93cc92d1cbd6b04a713941f8ae0b8..59773244717993c9c55e625b53cc01604fac5389 100644 (file)
@@ -8,7 +8,7 @@ if (($ENV{TRAVIS_PULL_REQUEST} || '') eq 'false') {
 
 note 'Checking Changes';
 my $changes_file = 'Changes';
-my $newver = '6.49';
+my $newver = '6.50';
 my $trial_token = '-TRIAL';
 my $encoding = 'UTF-8';