Imported Upstream version 6.46 upstream/6.46
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)
31 files changed:
Changes
MANIFEST
META.json
META.yml
Makefile.PL
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/local/http.t
xt/author/pod-spell.t
xt/release/changes_has_content.t

diff --git a/Changes b/Changes
index 55f1341..6a70da0 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 Change history for libwww-perl
 
+6.46      2020-06-23 21:19:26Z
+    - Fix a looping regression in 6.45 for redirect responses without
+      a Location header (GH PR#342, Niko Tyni)
+
 6.45      2020-06-08 14:51:28Z
     - Fix Client-Warning: Internal response sometimes reset (GH#341) (Jonathan
       Dahan and Julien Fiegehenn)
index e33bddc..ec888ef 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.014.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.015.
 CONTRIBUTING.md
 Changes
 INSTALL
index 9975c96..f1ed416 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.014, CPAN::Meta::Converter version 2.150010",
+   "generated_by" : "Dist::Zilla version 6.015, CPAN::Meta::Converter version 2.150010",
    "license" : [
       "perl_5"
    ],
    "provides" : {
       "LWP" : {
          "file" : "lib/LWP.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Authen::Basic" : {
          "file" : "lib/LWP/Authen/Basic.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Authen::Digest" : {
          "file" : "lib/LWP/Authen/Digest.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Authen::Ntlm" : {
          "file" : "lib/LWP/Authen/Ntlm.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::ConnCache" : {
          "file" : "lib/LWP/ConnCache.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Debug" : {
          "file" : "lib/LWP/Debug.pm",
-         "version" : "6.45",
+         "version" : "6.46",
          "x_deprecated" : 1
       },
       "LWP::Debug::TraceHTTP" : {
          "file" : "lib/LWP/Debug/TraceHTTP.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::DebugFile" : {
          "file" : "lib/LWP/DebugFile.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::MemberMixin" : {
          "file" : "lib/LWP/MemberMixin.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol" : {
          "file" : "lib/LWP/Protocol.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::cpan" : {
          "file" : "lib/LWP/Protocol/cpan.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::data" : {
          "file" : "lib/LWP/Protocol/data.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::file" : {
          "file" : "lib/LWP/Protocol/file.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::ftp" : {
          "file" : "lib/LWP/Protocol/ftp.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::gopher" : {
          "file" : "lib/LWP/Protocol/gopher.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::http" : {
          "file" : "lib/LWP/Protocol/http.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::loopback" : {
          "file" : "lib/LWP/Protocol/loopback.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::mailto" : {
          "file" : "lib/LWP/Protocol/mailto.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::nntp" : {
          "file" : "lib/LWP/Protocol/nntp.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Protocol::nogo" : {
          "file" : "lib/LWP/Protocol/nogo.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::RobotUA" : {
          "file" : "lib/LWP/RobotUA.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::Simple" : {
          "file" : "lib/LWP/Simple.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       },
       "LWP::UserAgent" : {
          "file" : "lib/LWP/UserAgent.pm",
-         "version" : "6.45"
+         "version" : "6.46"
       }
    },
    "release_status" : "stable",
       "x_IRC" : "irc://irc.perl.org/#lwp",
       "x_MailingList" : "mailto:libwww@perl.org"
    },
-   "version" : "6.45",
+   "version" : "6.46",
    "x_Dist_Zilla" : {
       "perl" : {
-         "version" : "5.026001"
+         "version" : "5.030002"
       },
       "plugins" : [
          {
          {
             "class" : "Dist::Zilla::Plugin::MetaConfig",
             "name" : "MetaConfig",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaProvides::Package",
                      {
                         "class" : "Dist::Zilla::Plugin::FinderCode",
                         "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM",
-                        "version" : "6.014"
+                        "version" : "6.015"
                      }
                   ],
                   "include_underscores" : 0
                   "meta_noindex" : 1
                },
                "Dist::Zilla::Role::ModuleMetadata" : {
-                  "Module::Metadata" : "1.000037",
-                  "version" : "0.004"
+                  "Module::Metadata" : "1.000036",
+                  "version" : "0.006"
                }
             },
             "name" : "MetaProvides::Package",
          {
             "class" : "Dist::Zilla::Plugin::MetaNoIndex",
             "name" : "MetaNoIndex",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaYAML",
             "name" : "MetaYAML",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaJSON",
             "name" : "MetaJSON",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaResources",
             "name" : "MetaResources",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::Deprecated",
          {
             "class" : "Dist::Zilla::Plugin::Manifest",
             "name" : "Manifest",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::License",
             "name" : "License",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::InstallGuide",
             "config" : {
                "Dist::Zilla::Role::ModuleMetadata" : {
-                  "Module::Metadata" : "1.000037",
-                  "version" : "0.004"
+                  "Module::Metadata" : "1.000036",
+                  "version" : "0.006"
                }
             },
             "name" : "InstallGuide",
          {
             "class" : "Dist::Zilla::Plugin::ExecDir",
             "name" : "ExecDir",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::Prereqs::FromCPANfile",
             "class" : "Dist::Zilla::Plugin::DynamicPrereqs",
             "config" : {
                "Dist::Zilla::Role::ModuleMetadata" : {
-                  "Module::Metadata" : "1.000037",
-                  "version" : "0.004"
+                  "Module::Metadata" : "1.000036",
+                  "version" : "0.006"
                }
             },
             "name" : "DynamicPrereqs",
             "config" : {
                "Dist::Zilla::Plugin::MakeMaker" : {
                   "make_path" : "make",
-                  "version" : "6.014"
+                  "version" : "6.015"
                },
                "Dist::Zilla::Role::TestRunner" : {
                   "default_jobs" : "4",
-                  "version" : "6.014"
+                  "version" : "6.015"
                }
             },
             "name" : "MakeMaker::Awesome",
          {
             "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
             "name" : "PodSyntaxTests",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable",
          {
             "class" : "Dist::Zilla::Plugin::TestRelease",
             "name" : "TestRelease",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::UploadToCPAN",
             "name" : "UploadToCPAN",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod",
                }
             },
             "name" : "@Git::VersionManager/pluginbundle version",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::RewriteVersion::Transitional",
                   "branch" : null,
                   "changelog" : "Changes",
                   "signed" : 0,
-                  "tag" : "v6.45",
+                  "tag" : "v6.46",
                   "tag_format" : "v%V",
                   "tag_message" : "v%V"
                },
          {
             "class" : "Dist::Zilla::Plugin::NextRelease",
             "name" : "@Git::VersionManager/NextRelease",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Commit",
          {
             "class" : "Dist::Zilla::Plugin::ConfirmRelease",
             "name" : "ConfirmRelease",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":InstallModules",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":IncModules",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":TestFiles",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ExtraTestFiles",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ExecFiles",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":PerlExecFiles",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ShareFiles",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":MainModule",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":AllFiles",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":NoFiles",
-            "version" : "6.014"
+            "version" : "6.015"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM",
-            "version" : "6.014"
+            "version" : "6.015"
          }
       ],
       "zilla" : {
          "config" : {
             "is_trial" : 0
          },
-         "version" : "6.014"
+         "version" : "6.015"
       }
    },
    "x_authority" : "cpan:LWWWP",
       "Naveed Massjouni <naveedm9@gmail.com>",
       "Nigel Gregoire <nigelgregoire@gmail.com>",
       "Nik LaBelle <nalabelle@gmail.com>",
+      "Niko Tyni <ntyni@debian.org>",
       "Olaf Alders <olaf@wundersolutions.com>",
       "Ondrej Hanak <ondrej.hanak@ubs.com>",
       "Patrik Lundin <patrik.lundin@su.se>",
       "Yury Zavarin <yury.zavarin@gmail.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.2",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.19",
    "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
 }
 
index 0e52910..b2b914a 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.014, CPAN::Meta::Converter version 2.150010'
+generated_by: 'Dist::Zilla version 6.015, 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.45'
+    version: '6.46'
   LWP::Authen::Basic:
     file: lib/LWP/Authen/Basic.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Authen::Digest:
     file: lib/LWP/Authen/Digest.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Authen::Ntlm:
     file: lib/LWP/Authen/Ntlm.pm
-    version: '6.45'
+    version: '6.46'
   LWP::ConnCache:
     file: lib/LWP/ConnCache.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Debug:
     file: lib/LWP/Debug.pm
-    version: '6.45'
+    version: '6.46'
     x_deprecated: 1
   LWP::Debug::TraceHTTP:
     file: lib/LWP/Debug/TraceHTTP.pm
-    version: '6.45'
+    version: '6.46'
   LWP::DebugFile:
     file: lib/LWP/DebugFile.pm
-    version: '6.45'
+    version: '6.46'
   LWP::MemberMixin:
     file: lib/LWP/MemberMixin.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol:
     file: lib/LWP/Protocol.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::cpan:
     file: lib/LWP/Protocol/cpan.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::data:
     file: lib/LWP/Protocol/data.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::file:
     file: lib/LWP/Protocol/file.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::ftp:
     file: lib/LWP/Protocol/ftp.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::gopher:
     file: lib/LWP/Protocol/gopher.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::http:
     file: lib/LWP/Protocol/http.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::loopback:
     file: lib/LWP/Protocol/loopback.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::mailto:
     file: lib/LWP/Protocol/mailto.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::nntp:
     file: lib/LWP/Protocol/nntp.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Protocol::nogo:
     file: lib/LWP/Protocol/nogo.pm
-    version: '6.45'
+    version: '6.46'
   LWP::RobotUA:
     file: lib/LWP/RobotUA.pm
-    version: '6.45'
+    version: '6.46'
   LWP::Simple:
     file: lib/LWP/Simple.pm
-    version: '6.45'
+    version: '6.46'
   LWP::UserAgent:
     file: lib/LWP/UserAgent.pm
-    version: '6.45'
+    version: '6.46'
 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.45'
+version: '6.46'
 x_Dist_Zilla:
   perl:
-    version: '5.026001'
+    version: '5.030002'
   plugins:
     -
       class: Dist::Zilla::Plugin::Git::GatherDir
@@ -160,7 +160,7 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::MetaConfig
       name: MetaConfig
-      version: '6.014'
+      version: '6.015'
     -
       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.014'
+              version: '6.015'
           include_underscores: 0
         Dist::Zilla::Role::MetaProvider::Provider:
           $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002004'
@@ -177,26 +177,26 @@ x_Dist_Zilla:
           inherit_version: '1'
           meta_noindex: '1'
         Dist::Zilla::Role::ModuleMetadata:
-          Module::Metadata: '1.000037'
-          version: '0.004'
+          Module::Metadata: '1.000036'
+          version: '0.006'
       name: MetaProvides::Package
       version: '2.004003'
     -
       class: Dist::Zilla::Plugin::MetaNoIndex
       name: MetaNoIndex
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::MetaYAML
       name: MetaYAML
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::MetaJSON
       name: MetaJSON
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::MetaResources
       name: MetaResources
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::Deprecated
       config:
@@ -228,23 +228,23 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::Manifest
       name: Manifest
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::License
       name: License
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::InstallGuide
       config:
         Dist::Zilla::Role::ModuleMetadata:
-          Module::Metadata: '1.000037'
-          version: '0.004'
+          Module::Metadata: '1.000036'
+          version: '0.006'
       name: InstallGuide
       version: '1.200013'
     -
       class: Dist::Zilla::Plugin::ExecDir
       name: ExecDir
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::Prereqs::FromCPANfile
       name: Prereqs::FromCPANfile
@@ -253,8 +253,8 @@ x_Dist_Zilla:
       class: Dist::Zilla::Plugin::DynamicPrereqs
       config:
         Dist::Zilla::Role::ModuleMetadata:
-          Module::Metadata: '1.000037'
-          version: '0.004'
+          Module::Metadata: '1.000036'
+          version: '0.006'
       name: DynamicPrereqs
       version: '0.037'
     -
@@ -262,10 +262,10 @@ x_Dist_Zilla:
       config:
         Dist::Zilla::Plugin::MakeMaker:
           make_path: make
-          version: '6.014'
+          version: '6.015'
         Dist::Zilla::Role::TestRunner:
           default_jobs: '4'
-          version: '6.014'
+          version: '6.015'
       name: MakeMaker::Awesome
       version: '0.48'
     -
@@ -339,7 +339,7 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::PodSyntaxTests
       name: PodSyntaxTests
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable
       name: Test::Pod::Coverage::Configurable
@@ -507,11 +507,11 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::TestRelease
       name: TestRelease
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::UploadToCPAN
       name: UploadToCPAN
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::ReadmeAnyFromPod
       config:
@@ -536,7 +536,7 @@ x_Dist_Zilla:
           phase: develop
           type: recommends
       name: '@Git::VersionManager/pluginbundle version'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::RewriteVersion::Transitional
       config:
@@ -591,7 +591,7 @@ x_Dist_Zilla:
           branch: ~
           changelog: Changes
           signed: 0
-          tag: v6.45
+          tag: v6.46
           tag_format: v%V
           tag_message: v%V
         Dist::Zilla::Role::Git::Repo:
@@ -616,7 +616,7 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::NextRelease
       name: '@Git::VersionManager/NextRelease'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::Git::Commit
       config:
@@ -653,56 +653,56 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::ConfirmRelease
       name: ConfirmRelease
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':InstallModules'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':IncModules'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':TestFiles'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ExtraTestFiles'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ExecFiles'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':PerlExecFiles'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ShareFiles'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':MainModule'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':AllFiles'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':NoFiles'
-      version: '6.014'
+      version: '6.015'
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: MetaProvides::Package/AUTOVIV/:InstallModulesPM
-      version: '6.014'
+      version: '6.015'
   zilla:
     class: Dist::Zilla::Dist::Builder
     config:
       is_trial: '0'
-    version: '6.014'
+    version: '6.015'
 x_authority: cpan:LWWWP
 x_contributors:
   - 'Adam Kennedy <adamk@cpan.org>'
@@ -768,6 +768,7 @@ x_contributors:
   - 'Naveed Massjouni <naveedm9@gmail.com>'
   - 'Nigel Gregoire <nigelgregoire@gmail.com>'
   - 'Nik LaBelle <nalabelle@gmail.com>'
+  - 'Niko Tyni <ntyni@debian.org>'
   - 'Olaf Alders <olaf@wundersolutions.com>'
   - 'Ondrej Hanak <ondrej.hanak@ubs.com>'
   - 'Patrik Lundin <patrik.lundin@su.se>'
@@ -803,6 +804,6 @@ x_contributors:
   - 'Yuri Karaban <tech@askold.net>'
   - 'Yury Zavarin <yury.zavarin@gmail.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.2
+x_serialization_backend: 'YAML::Tiny version 1.73'
 x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
index 7b9be59..70518f9 100644 (file)
@@ -86,7 +86,7 @@ my %WriteMakefileArgs = (
     "Test::Needs" => 0,
     "Test::RequiresInternet" => 0
   },
-  "VERSION" => "6.45",
+  "VERSION" => "6.46",
   "test" => {
     "TESTS" => "t/*.t t/base/*.t t/base/protocols/*.t t/leak/*.t t/local/*.t t/robot/*.t"
   }
index 2b0bf7d..7a0768f 100644 (file)
@@ -1,6 +1,6 @@
 package LWP;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require LWP::UserAgent;  # this should load everything you need
 
index b870371..2f1b9a1 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Authen::Basic;
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require Encode;
 require MIME::Base64;
index 993d6d8..9fe7449 100644 (file)
@@ -3,7 +3,7 @@ package LWP::Authen::Digest;
 use strict;
 use base 'LWP::Authen::Basic';
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require Digest::MD5;
 
index b46d10f..e13c1b4 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Authen::Ntlm;
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 use Authen::NTLM "1.02";
 use MIME::Base64 "2.12";
index b6c7152..5a6cda1 100644 (file)
@@ -2,7 +2,7 @@ package LWP::ConnCache;
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 our $DEBUG;
 
 sub new {
index ab849d3..9ff9cb4 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::Debug;    # legacy
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require Exporter;
 our @ISA       = qw(Exporter);
index 8426229..3d9d7ae 100644 (file)
@@ -11,7 +11,7 @@ package LWP::Debug::TraceHTTP;
 use strict;
 use base 'LWP::Protocol::http';
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 package # hide from PAUSE
     LWP::Debug::TraceHTTP::Socket;
index d10f71e..717a7b6 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::DebugFile;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 # legacy stub
 
index 51752a8..dc257d4 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::MemberMixin;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 sub _elem {
     my $self = shift;
index 4a7c6f3..e78ef86 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol;
 
 use base 'LWP::MemberMixin';
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 use strict;
 use Carp ();
index 2f99c31..2a787d8 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 
 use base qw(LWP::Protocol);
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require URI;
 require HTTP::Status;
index f8c75ca..6b471d9 100644 (file)
@@ -4,7 +4,7 @@ package LWP::Protocol::data;
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require HTTP::Response;
 require HTTP::Status;
index 0f81682..44a5cb1 100644 (file)
@@ -4,7 +4,7 @@ use base qw(LWP::Protocol);
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require LWP::MediaTypes;
 require HTTP::Request;
index 56b5900..0e2992d 100644 (file)
@@ -5,7 +5,7 @@ package LWP::Protocol::ftp;
 use base qw(LWP::Protocol);
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 use Carp            ();
 use HTTP::Status    ();
index 444f24b..2d21772 100644 (file)
@@ -9,7 +9,7 @@ package LWP::Protocol::gopher;
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require HTTP::Response;
 require HTTP::Status;
index 7ea69e9..8108ffc 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol::http;
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require HTTP::Response;
 require HTTP::Status;
index d3cdd87..16b3a48 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol::loopback;
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require HTTP::Response;
 
index 866c6d9..af469a2 100644 (file)
@@ -11,7 +11,7 @@ require HTTP::Status;
 use Carp;
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 use base qw(LWP::Protocol);
 our $SENDMAIL;
index cdf5309..275c059 100644 (file)
@@ -4,7 +4,7 @@ package LWP::Protocol::nntp;
 
 use base qw(LWP::Protocol);
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require HTTP::Response;
 require HTTP::Status;
index eb4851f..216d7de 100644 (file)
@@ -7,7 +7,7 @@ package LWP::Protocol::nogo;
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require HTTP::Response;
 require HTTP::Status;
index 184f2db..dc33b3e 100644 (file)
@@ -2,7 +2,7 @@ package LWP::RobotUA;
 
 use base qw(LWP::UserAgent);
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require WWW::RobotRules;
 require HTTP::Request;
index 8c7b438..7cc9ef2 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Simple;
 
 use strict;
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 require Exporter;
 
index 047495f..d35f790 100644 (file)
@@ -15,7 +15,7 @@ use LWP::Protocol ();
 use Scalar::Util qw(blessed);
 use Try::Tiny qw(try catch);
 
-our $VERSION = '6.45';
+our $VERSION = '6.46';
 
 sub new
 {
@@ -300,10 +300,12 @@ sub request {
     my $response = $self->simple_request($request, $arg, $size);
     $response->previous($previous) if $previous;
 
-    if ($response->header('Location') && $response->redirects >= $self->{max_redirect}) {
-        $response->header("Client-Warning" =>
+    if ($response->redirects >= $self->{max_redirect}) {
+        if ($response->header('Location')) {
+            $response->header("Client-Warning" =>
                 "Redirect loop detected (max_redirect = $self->{max_redirect})"
-        );
+            );
+        }
         return $response;
     }
 
index 260f1ec..0700d8e 100644 (file)
@@ -63,7 +63,7 @@ sub _test {
     return plan skip_all => 'We could not talk to our daemon' unless $DAEMON;
     return plan skip_all => 'No base URI' unless $base;
 
-    plan tests => 125;
+    plan tests => 127;
 
     my $ua = LWP::UserAgent->new;
     $ua->agent("Mozilla/0.01 " . $ua->agent);
@@ -221,6 +221,13 @@ sub _test {
         is($res->redirects, 0, 'redirect loop: zero redirects');
         $ua->max_redirect(5);
         is($ua->max_redirect(), 5, 'redirect loop: max redirects set back to 5');
+
+        # Test that redirects without a Location header work and don't loop
+        $req->uri(url("/redirect4", $base));
+        $ua->max_redirect(5);
+        is($ua->max_redirect(), 5, 'redirect loop: max redirect 5');
+        $res = $ua->request($req);
+        isa_ok($res, 'HTTP::Response', 'redirect loop: good response object');
     }
     { # basic auth
         my $req = HTTP::Request->new(GET => url("/basic", $base));
@@ -622,6 +629,7 @@ sub daemonize {
     };
     $router{get_redirect2} = sub { shift->send_redirect("/redirect3/") };
     $router{get_redirect3} = sub { shift->send_redirect("/redirect2/") };
+    $router{get_redirect4} = sub { my $r = HTTP::Response->new(303); shift->send_response($r) };
     $router{post_echo} = sub {
         my($c,$r) = @_;
         $c->send_basic_header;
index 526cb6a..a324128 100644 (file)
@@ -191,6 +191,7 @@ Nicolai
 Nierstrasz
 Nigel
 Nik
+Niko
 Ntlm
 Olaf
 Olly
@@ -265,6 +266,7 @@ Tony
 Toru
 Tourbin
 TraceHTTP
+Tyni
 Tørholm
 UA
 Ugai
@@ -369,6 +371,7 @@ nawglan
 nigelgregoire
 nntp
 nogo
+ntyni
 ohiocore
 olaf
 ondrej
index bf262a7..1e5b3cb 100644 (file)
@@ -8,7 +8,7 @@ if (($ENV{TRAVIS_PULL_REQUEST} || '') eq 'false') {
 
 note 'Checking Changes';
 my $changes_file = 'Changes';
-my $newver = '6.45';
+my $newver = '6.46';
 my $trial_token = '-TRIAL';
 my $encoding = 'UTF-8';