Imported Upstream version 6.37 upstream/6.37
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 21 Jul 2022 02:28:24 +0000 (11:28 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 21 Jul 2022 02:28:24 +0000 (11:28 +0900)
37 files changed:
CONTRIBUTING.md
Changes
INSTALL
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/base/ua_handlers.t
xt/author/00-compile.t
xt/author/live/jigsaw/redirect-post.t [new file with mode: 0644]
xt/author/misc/pod.t [deleted file]
xt/author/pod-spell.t
xt/release/changes_has_content.t

index 35fc514a3aac58274aaae2a9ec83cd4c394d71b5..f4c8a77b1434196527d2a642741dd20b8b36de3c 100644 (file)
@@ -3,6 +3,13 @@
 Thank you for considering contributing to this distribution.  This file
 contains instructions that will help you work with the source code.
 
+PLEASE NOTE that if you have any questions or difficulties, you can reach the
+maintainer(s) through the bug queue described later in this document
+(preferred), or by emailing the releaser directly. You are not required to
+follow any of the steps in this document to submit a patch or bug report;
+these are just recommendations, intended to help you (and help us help you
+faster).
+
 The distribution is managed with [Dist::Zilla](https://metacpan.org/pod/Dist::Zilla).
 This means that many of the usual files you might expect are not in the
 repository, but are generated at release time.  Some generated files are kept
@@ -34,14 +41,39 @@ You can run tests directly using the `prove` tool:
     $ prove -l
     $ prove -lv t/some_test_file.t
 
-For most of my distributions, `prove` is entirely sufficient for you to test
-any patches you have. I use `prove` for 99% of my testing during development.
+In most cases, `prove` is entirely sufficient for you to test any patches you
+have. I use `prove` for 99% of my testing during development.
 
 ## Code style and tidying
 
 Please try to match any existing coding style.  If there is a `.perltidyrc`
 file, please install Perl::Tidy and use perltidy before submitting patches.
 
+## Submitting patches
+
+The code for this distribution is hosted at GitHub. The repository is:
+https://github.com/libwww-perl/libwww-perl
+You can submit code changes by forking the repository, pushing your code
+changes to your clone, and then submitting a pull request. Detailed
+instructions for doing that is available here:
+
+https://help.github.com/articles/creating-a-pull-request
+
+All pull requests for this distribution will be automatically tested on Linux
+by Travis at: https://travis-ci.com/libwww-perl/libwww-perl
+Results will be visible in the pull request on GitHub. Follow the appropriate
+links for details when tests fail.
+
+If you have found a bug, but do not have an accompanying patch to fix it, you
+can submit an issue report here:
+https://rt.cpan.org/Public/Dist/Display.html?Name=libwww-perl
+or via email: bug-libwww-perl@rt.cpan.org
+
+There is also a mailing list available for users of this distribution, at
+libwww@perl.org
+There is also an irc channel available for users of this distribution, at
+irc://irc.perl.org/#lwp
+
 ## Installing and using Dist::Zilla
 
 [Dist::Zilla](https://metacpan.org/pod/Dist::Zilla) is a very powerful
diff --git a/Changes b/Changes
index 47ae8d5cb12490a0a99ecc4a1d93a323a91650a0..1d95b8c768094e19233cde5d3b38981adbe5eb4c 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
 Change history for libwww-perl
 
+6.37      2019-03-06 20:49:26Z
+    - Improve ->add_handler documentation (GH #272) (Julien Fiegehenn)
+    - Alter our rule set to allow IPv6 proxy hosts beginning with [. (GH #237)
+    - Add a jigsaw test for 307 redirects (GH#285) (Nik LaBelle)
+
 6.36      2018-10-10 02:20:58Z
     - fix broken link https://metacpan.org/pod/LWP::Simple by fixing pod
       header (thanks for the report, traumschule!)
diff --git a/INSTALL b/INSTALL
index 7428f22c146a8212e9530ea873dc95818b80717a..c24b514906ee710bb6c6f6f398f06406b4a5a5cc 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -48,6 +48,19 @@ distribution's installer can be run.  They can be found under the
 "configure_requires" key of META.yml or the
 "{prereqs}{configure}{requires}" key of META.json.
 
+## Other Prerequisites
+
+This distribution may require additional modules to be installed after running
+Makefile.PL.
+Look for prerequisites in the following phases:
+
+* to run make, PHASE = build
+* to use the module code itself, PHASE = runtime
+* to run tests, PHASE = test
+
+They can all be found in the "PHASE_requires" key of MYMETA.yml or the
+"{prereqs}{PHASE}{requires}" key of MYMETA.json.
+
 ## Documentation
 
 libwww-perl documentation is available as POD.
index 15ce09fb95f240f94b87d0896fd839bdd8266ac3..bae6b69edffd17f52bf74135792e21871ed6791d 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -69,13 +69,13 @@ xt/author/live/jigsaw/md5-get.t
 xt/author/live/jigsaw/md5.t
 xt/author/live/jigsaw/neg-get.t
 xt/author/live/jigsaw/neg.t
+xt/author/live/jigsaw/redirect-post.t
 xt/author/live/jigsaw/te.t
 xt/author/live/online.t
 xt/author/minimum-version.t
 xt/author/misc/dbmrobot
 xt/author/misc/get-callback
 xt/author/misc/get-file
-xt/author/misc/pod.t
 xt/author/mojibake.t
 xt/author/net/cache-timeouts.t
 xt/author/net/cgi-bin/moved
index 5c54a118be5efc57ec9081256e9916ea5b4da95c..757296e88fe347644554a34ca59dd2dab72b2fac 100644 (file)
--- a/META.json
+++ b/META.json
    "provides" : {
       "LWP" : {
          "file" : "lib/LWP.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Authen::Basic" : {
          "file" : "lib/LWP/Authen/Basic.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Authen::Digest" : {
          "file" : "lib/LWP/Authen/Digest.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Authen::Ntlm" : {
          "file" : "lib/LWP/Authen/Ntlm.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::ConnCache" : {
          "file" : "lib/LWP/ConnCache.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Debug" : {
          "file" : "lib/LWP/Debug.pm",
-         "version" : "6.36",
+         "version" : "6.37",
          "x_deprecated" : 1
       },
       "LWP::Debug::TraceHTTP" : {
          "file" : "lib/LWP/Debug/TraceHTTP.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::DebugFile" : {
          "file" : "lib/LWP/DebugFile.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::MemberMixin" : {
          "file" : "lib/LWP/MemberMixin.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol" : {
          "file" : "lib/LWP/Protocol.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::cpan" : {
          "file" : "lib/LWP/Protocol/cpan.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::data" : {
          "file" : "lib/LWP/Protocol/data.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::file" : {
          "file" : "lib/LWP/Protocol/file.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::ftp" : {
          "file" : "lib/LWP/Protocol/ftp.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::gopher" : {
          "file" : "lib/LWP/Protocol/gopher.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::http" : {
          "file" : "lib/LWP/Protocol/http.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::loopback" : {
          "file" : "lib/LWP/Protocol/loopback.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::mailto" : {
          "file" : "lib/LWP/Protocol/mailto.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::nntp" : {
          "file" : "lib/LWP/Protocol/nntp.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Protocol::nogo" : {
          "file" : "lib/LWP/Protocol/nogo.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::RobotUA" : {
          "file" : "lib/LWP/RobotUA.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::Simple" : {
          "file" : "lib/LWP/Simple.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       },
       "LWP::UserAgent" : {
          "file" : "lib/LWP/UserAgent.pm",
-         "version" : "6.36"
+         "version" : "6.37"
       }
    },
    "release_status" : "stable",
       "x_IRC" : "irc://irc.perl.org/#lwp",
       "x_MailingList" : "mailto:libwww@perl.org"
    },
-   "version" : "6.36",
+   "version" : "6.37",
    "x_Dist_Zilla" : {
       "perl" : {
-         "version" : "5.029003"
+         "version" : "5.026001"
       },
       "plugins" : [
          {
                   "meta_noindex" : 1
                },
                "Dist::Zilla::Role::ModuleMetadata" : {
-                  "Module::Metadata" : "1.000034",
-                  "version" : "0.006"
+                  "Module::Metadata" : "1.000033",
+                  "version" : "0.004"
                }
             },
             "name" : "MetaProvides::Package",
             "class" : "Dist::Zilla::Plugin::Git::Contributors",
             "config" : {
                "Dist::Zilla::Plugin::Git::Contributors" : {
-                  "git_version" : "2.18.0",
+                  "git_version" : "2.20.1",
                   "include_authors" : 0,
                   "include_releaser" : 1,
                   "order_by" : "name",
          {
             "class" : "Dist::Zilla::Plugin::InstallGuide",
             "name" : "InstallGuide",
-            "version" : "1.200011"
+            "version" : "1.200012"
          },
          {
             "class" : "Dist::Zilla::Plugin::ExecDir",
             "class" : "Dist::Zilla::Plugin::DynamicPrereqs",
             "config" : {
                "Dist::Zilla::Role::ModuleMetadata" : {
-                  "Module::Metadata" : "1.000034",
-                  "version" : "0.006"
+                  "Module::Metadata" : "1.000033",
+                  "version" : "0.004"
                }
             },
             "name" : "DynamicPrereqs",
                }
             },
             "name" : "MakeMaker::Awesome",
-            "version" : "0.47"
+            "version" : "0.41"
          },
          {
             "class" : "Dist::Zilla::Plugin::MojibakeTests",
             "name" : "Test::Compile",
             "version" : "2.058"
          },
+         {
+            "class" : "Dist::Zilla::Plugin::Substitute",
+            "name" : "00-compile.t",
+            "version" : "0.006"
+         },
          {
             "class" : "Dist::Zilla::Plugin::Test::Portability",
             "config" : {
          },
          {
             "class" : "Dist::Zilla::Plugin::Substitute",
-            "name" : "Substitute",
+            "name" : "changes_has_content.t",
             "version" : "0.006"
          },
          {
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.18.0",
+                  "git_version" : "2.20.1",
                   "repo_root" : "."
                }
             },
                }
             },
             "name" : "CopyFilesFromRelease",
-            "version" : "0.007"
+            "version" : "0.006"
          },
          {
             "class" : "Dist::Zilla::Plugin::Prereqs",
                }
             },
             "name" : "@Git::VersionManager/CopyFilesFromRelease",
-            "version" : "0.007"
+            "version" : "0.006"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Commit",
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.18.0",
+                  "git_version" : "2.20.1",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
                   "branch" : null,
                   "changelog" : "Changes",
                   "signed" : 0,
-                  "tag" : "v6.36",
+                  "tag" : "v6.37",
                   "tag_format" : "v%v",
                   "tag_message" : "v%v"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.18.0",
+                  "git_version" : "2.20.1",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.18.0",
+                  "git_version" : "2.20.1",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
                   "remotes_must_exist" : 1
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.18.0",
+                  "git_version" : "2.20.1",
                   "repo_root" : "."
                }
             },
       "murphy <murphy@genome.chop.edu>",
       "Naveed Massjouni <naveedm9@gmail.com>",
       "Nigel Gregoire <nigelgregoire@gmail.com>",
+      "Nik LaBelle <nalabelle@gmail.com>",
       "Olaf Alders <olaf@wundersolutions.com>",
       "Ondrej Hanak <ondrej.hanak@ubs.com>",
       "Patrik Lundin <patrik.lundin@su.se>",
       "Sean M. Burke <sburke@cpan.org>",
       "Sergey Romanov <sromanov-dev@yandex.ru>",
       "Shoichi Kaji <skaji@cpan.org>",
+      "simbabque <simbabque@cpan.org>",
       "Slaven Rezic <slaven@rezic.de>",
       "Spiros Denaxas <s.denaxas@gmail.com>",
       "Steffen Ullrich <Steffen_Ullrich@genua.de>",
       "Yury Zavarin <yury.zavarin@gmail.com>",
       "Zefram <zefram@fysh.org>"
    ],
-   "x_generated_by_perl" : "v5.29.3",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 4.06"
+   "x_generated_by_perl" : "v5.26.1",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.04"
 }
 
index 72c5ec525342eaa7fd6b0d3c88073ddcdfceaf44..6f55febc44b20f92c69fd0a83aa26551634a0878 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -30,74 +30,74 @@ no_index:
 provides:
   LWP:
     file: lib/LWP.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Authen::Basic:
     file: lib/LWP/Authen/Basic.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Authen::Digest:
     file: lib/LWP/Authen/Digest.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Authen::Ntlm:
     file: lib/LWP/Authen/Ntlm.pm
-    version: '6.36'
+    version: '6.37'
   LWP::ConnCache:
     file: lib/LWP/ConnCache.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Debug:
     file: lib/LWP/Debug.pm
-    version: '6.36'
+    version: '6.37'
     x_deprecated: 1
   LWP::Debug::TraceHTTP:
     file: lib/LWP/Debug/TraceHTTP.pm
-    version: '6.36'
+    version: '6.37'
   LWP::DebugFile:
     file: lib/LWP/DebugFile.pm
-    version: '6.36'
+    version: '6.37'
   LWP::MemberMixin:
     file: lib/LWP/MemberMixin.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol:
     file: lib/LWP/Protocol.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::cpan:
     file: lib/LWP/Protocol/cpan.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::data:
     file: lib/LWP/Protocol/data.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::file:
     file: lib/LWP/Protocol/file.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::ftp:
     file: lib/LWP/Protocol/ftp.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::gopher:
     file: lib/LWP/Protocol/gopher.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::http:
     file: lib/LWP/Protocol/http.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::loopback:
     file: lib/LWP/Protocol/loopback.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::mailto:
     file: lib/LWP/Protocol/mailto.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::nntp:
     file: lib/LWP/Protocol/nntp.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Protocol::nogo:
     file: lib/LWP/Protocol/nogo.pm
-    version: '6.36'
+    version: '6.37'
   LWP::RobotUA:
     file: lib/LWP/RobotUA.pm
-    version: '6.36'
+    version: '6.37'
   LWP::Simple:
     file: lib/LWP/Simple.pm
-    version: '6.36'
+    version: '6.37'
   LWP::UserAgent:
     file: lib/LWP/UserAgent.pm
-    version: '6.36'
+    version: '6.37'
 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.36'
+version: '6.37'
 x_Dist_Zilla:
   perl:
-    version: '5.029003'
+    version: '5.026001'
   plugins:
     -
       class: Dist::Zilla::Plugin::Git::GatherDir
@@ -177,8 +177,8 @@ x_Dist_Zilla:
           inherit_version: '1'
           meta_noindex: '1'
         Dist::Zilla::Role::ModuleMetadata:
-          Module::Metadata: '1.000034'
-          version: '0.006'
+          Module::Metadata: '1.000033'
+          version: '0.004'
       name: MetaProvides::Package
       version: '2.004003'
     -
@@ -210,7 +210,7 @@ x_Dist_Zilla:
       class: Dist::Zilla::Plugin::Git::Contributors
       config:
         Dist::Zilla::Plugin::Git::Contributors:
-          git_version: 2.18.0
+          git_version: 2.20.1
           include_authors: 0
           include_releaser: 1
           order_by: name
@@ -236,7 +236,7 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::InstallGuide
       name: InstallGuide
-      version: '1.200011'
+      version: '1.200012'
     -
       class: Dist::Zilla::Plugin::ExecDir
       name: ExecDir
@@ -249,8 +249,8 @@ x_Dist_Zilla:
       class: Dist::Zilla::Plugin::DynamicPrereqs
       config:
         Dist::Zilla::Role::ModuleMetadata:
-          Module::Metadata: '1.000034'
-          version: '0.006'
+          Module::Metadata: '1.000033'
+          version: '0.004'
       name: DynamicPrereqs
       version: '0.034'
     -
@@ -263,7 +263,7 @@ x_Dist_Zilla:
           default_jobs: 1
           version: '6.012'
       name: MakeMaker::Awesome
-      version: '0.47'
+      version: '0.41'
     -
       class: Dist::Zilla::Plugin::MojibakeTests
       name: MojibakeTests
@@ -294,6 +294,10 @@ x_Dist_Zilla:
           switch: []
       name: Test::Compile
       version: '2.058'
+    -
+      class: Dist::Zilla::Plugin::Substitute
+      name: 00-compile.t
+      version: '0.006'
     -
       class: Dist::Zilla::Plugin::Test::Portability
       config:
@@ -319,7 +323,7 @@ x_Dist_Zilla:
       version: '0.011'
     -
       class: Dist::Zilla::Plugin::Substitute
-      name: Substitute
+      name: changes_has_content.t
       version: '0.006'
     -
       class: Dist::Zilla::Plugin::Test::MinimumVersion
@@ -470,7 +474,7 @@ x_Dist_Zilla:
           allow_dirty_match: []
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.18.0
+          git_version: 2.20.1
           repo_root: .
       name: Git::Check
       version: '2.045'
@@ -517,7 +521,7 @@ x_Dist_Zilla:
             - META.json
           match: []
       name: CopyFilesFromRelease
-      version: '0.007'
+      version: '0.006'
     -
       class: Dist::Zilla::Plugin::Prereqs
       config:
@@ -551,7 +555,7 @@ x_Dist_Zilla:
             - Changes
           match: []
       name: '@Git::VersionManager/CopyFilesFromRelease'
-      version: '0.007'
+      version: '0.006'
     -
       class: Dist::Zilla::Plugin::Git::Commit
       config:
@@ -567,7 +571,7 @@ x_Dist_Zilla:
           allow_dirty_match: []
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.18.0
+          git_version: 2.20.1
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
@@ -580,11 +584,11 @@ x_Dist_Zilla:
           branch: ~
           changelog: Changes
           signed: 0
-          tag: v6.36
+          tag: v6.37
           tag_format: v%v
           tag_message: v%v
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.18.0
+          git_version: 2.20.1
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
@@ -621,7 +625,7 @@ x_Dist_Zilla:
             - (?^:^lib/.*\.pm$)
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.18.0
+          git_version: 2.20.1
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
@@ -635,7 +639,7 @@ x_Dist_Zilla:
             - origin
           remotes_must_exist: 1
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.18.0
+          git_version: 2.20.1
           repo_root: .
       name: Git::Push
       version: '2.045'
@@ -751,6 +755,7 @@ x_contributors:
   - 'murphy <murphy@genome.chop.edu>'
   - 'Naveed Massjouni <naveedm9@gmail.com>'
   - 'Nigel Gregoire <nigelgregoire@gmail.com>'
+  - 'Nik LaBelle <nalabelle@gmail.com>'
   - 'Olaf Alders <olaf@wundersolutions.com>'
   - 'Ondrej Hanak <ondrej.hanak@ubs.com>'
   - 'Patrik Lundin <patrik.lundin@su.se>'
@@ -764,6 +769,7 @@ x_contributors:
   - 'Sean M. Burke <sburke@cpan.org>'
   - 'Sergey Romanov <sromanov-dev@yandex.ru>'
   - 'Shoichi Kaji <skaji@cpan.org>'
+  - 'simbabque <simbabque@cpan.org>'
   - 'Slaven Rezic <slaven@rezic.de>'
   - 'Spiros Denaxas <s.denaxas@gmail.com>'
   - 'Steffen Ullrich <Steffen_Ullrich@genua.de>'
@@ -783,5 +789,5 @@ x_contributors:
   - 'Yuri Karaban <tech@askold.net>'
   - 'Yury Zavarin <yury.zavarin@gmail.com>'
   - 'Zefram <zefram@fysh.org>'
-x_generated_by_perl: v5.29.3
-x_serialization_backend: 'YAML::Tiny version 1.73'
+x_generated_by_perl: v5.26.1
+x_serialization_backend: 'YAML::Tiny version 1.70'
index 21ab8e5c73851227f136b80a316a2f6e6e898295..8fc65541dc361fc885cb75e1f7294a34dfe41b94 100644 (file)
@@ -1,5 +1,5 @@
 # This Makefile.PL for libwww-perl was generated by
-# Dist::Zilla::Plugin::MakeMaker::Awesome 0.47.
+# Dist::Zilla::Plugin::MakeMaker::Awesome 0.41.
 # Don't edit it but the dist.ini and plugins used to construct it.
 
 use strict;
@@ -86,7 +86,7 @@ my %WriteMakefileArgs = (
     "Test::Needs" => 0,
     "Test::RequiresInternet" => 0
   },
-  "VERSION" => "6.36",
+  "VERSION" => "6.37",
   "test" => {
     "TESTS" => "t/*.t t/base/*.t t/base/protocols/*.t t/leak/*.t t/local/*.t t/robot/*.t"
   }
@@ -138,7 +138,7 @@ my %FallbackPrereqs = (
 # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.034
 requires('HTTP::Status', '6.18') if has_module('HTTP::Status', '6.17');
 
-unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) {
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
   delete $WriteMakefileArgs{TEST_REQUIRES};
   delete $WriteMakefileArgs{BUILD_REQUIRES};
   $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
index 6ce9e7f5242eddd96a6db727d433e568ae9049bb..206206f538bf39ead878f81f6a6d98f94a289553 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -73,17 +73,26 @@ WriteMakefile_arg = EXE_FILES => [ map "bin/$_", @prog ]
 [MojibakeTests]
 [Test::Version]
 [Test::ReportPrereqs]
+
 [Test::Compile]
 bail_out_on_fail = 1
 xt_mode = 1
+; avoid failing on 5.8: Warning: Use of "keys" without parentheses is ambiguous at Data/Dump/Trace.pm line 262.
+[Substitute / 00-compile.t]
+file = xt/author/00-compile.t
+code = s{(is\(scalar\(\@warnings\), 0, 'no warnings found'\))}{TODO: \{\nlocal \$TODO = 'Data::Dump::Trace warns on 5.8' if \$\] < '5.009';\n$1};
+code = s{(^\s+or diag 'got warnings: ', explain\(\\\@warnings\);)}{$1\n\}};
 
 [Test::Portability]
 ; TODO perltidy for NoTabs and namespace::autoclean
 ; [Test::CleanNamespaces] ; TODO
 ; [Test::NoTabs] ; TODO
 [Test::EOL]
+
+; We run release tests in travis. but make the changes-has-content test TODO only for master.
+; This will prod pull request submitters to add a Changes entry.
 [Test::ChangesHasContent]
-[Substitute]
+[Substitute / changes_has_content.t]
 file = xt/release/changes_has_content.t
 code = s{^(note 'Checking Changes')}{if \(\(\$ENV\{TRAVIS_PULL_REQUEST\} \|\| '') eq 'false'\) \{\n  chomp\(my \$branch_name = \(\$ENV\{TRAVIS_BRANCH\} || \`git rev-parse --abbrev-ref HEAD\`\)\);\n  \$TODO = 'Changes need not have content for this release yet if this is only the master branch'\n    if \(\$branch_name \|\| ''\) eq 'master';\n\}\n\n$1}
 
index bbb5623a27f2d2530f65336fe3c4fb1a6106ccb7..12bf7a95f81b678aaca615c665bb71420b7fae04 100644 (file)
@@ -1,6 +1,6 @@
 package LWP;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require LWP::UserAgent;  # this should load everything you need
 
index 3f552b2a27834add16067d564f8588475cdbff4c..d33e4af2e40fc0e6d3380c55b773df5e16802c3f 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Authen::Basic;
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require MIME::Base64;
 
index 4291a2ed6c5914551e781f134a1e6aeac90d2652..2e11ac638b93b7822fc900f3f9c4cb3c9c456838 100644 (file)
@@ -3,7 +3,7 @@ package LWP::Authen::Digest;
 use strict;
 use base 'LWP::Authen::Basic';
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require Digest::MD5;
 
index d6f64817ed20b8f2e1ccbb114fbf5d8b5a1f6b21..b4eaad1eaa9ef65e03b8b521b332948d5047b33a 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Authen::Ntlm;
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 use Authen::NTLM "1.02";
 use MIME::Base64 "2.12";
index 31e5ad8175646a882541b8adc83df0a5978f7f20..d4cfc66e2661619846800006df51969a742aea71 100644 (file)
@@ -2,7 +2,7 @@ package LWP::ConnCache;
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 our $DEBUG;
 
 sub new {
index 817e1076d3899b0dd8dce048e93cdbecf96ca288..c93a80ade30230710dcef266ed552eed3339a5e7 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::Debug;    # legacy
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require Exporter;
 our @ISA       = qw(Exporter);
index 178e2c198f4b80b948e52af39c6ab4e9e2c95392..0644644616c7abb37f381a2f018865490a4f1fea 100644 (file)
@@ -11,7 +11,7 @@ package LWP::Debug::TraceHTTP;
 use strict;
 use base 'LWP::Protocol::http';
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 package # hide from PAUSE
     LWP::Debug::TraceHTTP::Socket;
index 77374166661e56a431fc6ac06ec0e5092f070cb2..f35cdf3426db00143a05e06b8ac8b17fe27b175a 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::DebugFile;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 # legacy stub
 
index 4ed468194d65f014d15de0b9efe4fb447c5dddda..4ed9053cbc22f69ff0f584323372b4c2bd6a448f 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::MemberMixin;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 sub _elem {
     my $self = shift;
index aeccec45f14584fed389969b185ca70c4f572429..f5966ab1c16d454743acafd83f98d5b1942febe2 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol;
 
 use base 'LWP::MemberMixin';
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 use strict;
 use Carp ();
index fb2e10c839fa7f7c1fd1c02871a7617a86f676b0..1f6bd0d91b976f9a4fc9a182697166684f32cd18 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 
 use base qw(LWP::Protocol);
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require URI;
 require HTTP::Status;
index 34cd93255b300ef326d8c1d1419fe16006649119..8460f05be9f52039d9a6994beff6c466516b8fba 100644 (file)
@@ -4,7 +4,7 @@ package LWP::Protocol::data;
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require HTTP::Response;
 require HTTP::Status;
index d34d59d96dac18bff3b7d6ca7b33766c69962aca..01c14eeafa705e80edb9a81b7a53a01cfd0fab7d 100644 (file)
@@ -4,7 +4,7 @@ use base qw(LWP::Protocol);
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require LWP::MediaTypes;
 require HTTP::Request;
index ee119a6019599ca63eb6ee7ed5ad5a69e5135af0..d45a877f5938b9c8bf4b4869c033d6f903ca9153 100644 (file)
@@ -5,7 +5,7 @@ package LWP::Protocol::ftp;
 use base qw(LWP::Protocol);
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 use Carp            ();
 use HTTP::Status    ();
index 72807795f3b8f04b12cc3b51d6bb14efa8bca96a..6fd6ff710ba6f0930b40dce088b7736202d01674 100644 (file)
@@ -9,7 +9,7 @@ package LWP::Protocol::gopher;
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require HTTP::Response;
 require HTTP::Status;
index 52e3a940341c8130978e05cc0cffdbb4caa8a1bb..ec53e23d95d64741faf56897f80cb704931ce3ee 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol::http;
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require HTTP::Response;
 require HTTP::Status;
index 762d317f8c2c7e2bca6698d5d91c4f15515d080a..b7645deee660c6cc331422225edce23f2f273829 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol::loopback;
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require HTTP::Response;
 
index 817887304eb095af44bc45c11034ecbaab9e7167..d970edafbe610edb614326a92e5f28cb9d6c84a3 100644 (file)
@@ -11,7 +11,7 @@ require HTTP::Status;
 use Carp;
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 use base qw(LWP::Protocol);
 our $SENDMAIL;
index 030a657ac9f9ff4e7f1e4954782085546b8dc259..3cbde3f4e0aa746f683c06a9d5acaa770b964c0c 100644 (file)
@@ -4,7 +4,7 @@ package LWP::Protocol::nntp;
 
 use base qw(LWP::Protocol);
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require HTTP::Response;
 require HTTP::Status;
index 55f3fd9e2be3ac34d7adecaeb8f4e49c2fba0d65..32f09579bff9266e125c6306d54ee75bf831fcba 100644 (file)
@@ -7,7 +7,7 @@ package LWP::Protocol::nogo;
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require HTTP::Response;
 require HTTP::Status;
index bd00d4dc5f57f313687ec0ef80937acab684afed..a418fe32fe5cbe3265f03fdab80e3628e41aba77 100644 (file)
@@ -2,7 +2,7 @@ package LWP::RobotUA;
 
 use base qw(LWP::UserAgent);
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require WWW::RobotRules;
 require HTTP::Request;
index 2d42db08c98e6bd3b03f93b6d86be670c9326dd0..f1b91b13ca631ec44b11e0820e16372dd9639dd8 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Simple;
 
 use strict;
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 require Exporter;
 
index 0d55debe6ccfa6c41001d39a7a6e9495760a2ff4..58f09e0b2a9e667ed9891b228246cb857e66bf57 100644 (file)
@@ -15,7 +15,7 @@ use LWP::Protocol ();
 use Scalar::Util qw(blessed);
 use Try::Tiny qw(try catch);
 
-our $VERSION = '6.36';
+our $VERSION = '6.37';
 
 sub new
 {
@@ -1059,7 +1059,7 @@ sub proxy {
         my $url = shift;
         if (defined($url) && length($url)) {
             Carp::croak("Proxy must be specified as absolute URI; '$url' is not") unless $url =~ /^$URI::scheme_re:/;
-            Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://\w,;
+            Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://[\w[],;
         }
         $self->{proxy}{$key} = $url;
         $self->set_my_handler("request_preprepare", \&_need_proxy)
@@ -1596,7 +1596,7 @@ The possible values C<$phase> and the corresponding callback signatures are:
 
 =over
 
-=item response_data => sub { my($response, $ua, $h, $data) = @_; ... }
+=item response_data => sub { my($response, $ua, $handler, $data) = @_; ... }
 
 This handler is called for each chunk of data received for the
 response.  The handler might croak to abort the request.
@@ -1604,37 +1604,37 @@ response.  The handler might croak to abort the request.
 This handler needs to return a TRUE value to be called again for
 subsequent chunks for the same request.
 
-=item response_done => sub { my($response, $ua, $h) = @_; ... }
+=item response_done => sub { my($response, $ua, $handler) = @_; ... }
 
 The handler is called after the response has been fully received, but
 before any redirect handling is attempted.  The handler can be used to
 extract information or modify the response.
 
-=item response_header => sub { my($response, $ua, $h) = @_; ... }
+=item response_header => sub { my($response, $ua, $handler) = @_; ... }
 
 This handler is called right after the response headers have been
 received, but before any content data.  The handler might set up
 handlers for data and might croak to abort the request.
 
-The handler might set the $response->{default_add_content} value to
+The handler might set the C<< $response->{default_add_content} >> value to
 control if any received data should be added to the response object
-directly.  This will initially be false if the $ua->request() method
-was called with a $content_file or $content_cb argument; otherwise true.
+directly.  This will initially be false if the C<< $ua->request() >> method
+was called with a C<$content_file> or C<$content_cb argument>; otherwise true.
 
-=item request_prepare => sub { my($request, $ua, $h) = @_; ... }
+=item request_prepare => sub { my($request, $ua, $handler) = @_; ... }
 
 The handler is called before the request is sent and can modify the
 request any way it see fit.  This can for instance be used to add
 certain headers to specific requests.
 
-The method can assign a new request object to $_[0] to replace the
+The method can assign a new request object to C<$_[0]> to replace the
 request that is sent fully.
 
 The return value from the callback is ignored.  If an exception is
 raised it will abort the request and make the request method return a
 "400 Bad request" response.
 
-=item request_preprepare => sub { my($request, $ua, $h) = @_; ... }
+=item request_preprepare => sub { my($request, $ua, $handler) = @_; ... }
 
 The handler is called before the C<request_prepare> and other standard
 initialization of the request.  This can be used to set up headers
@@ -1642,23 +1642,26 @@ and attributes that the C<request_prepare> handler depends on.  Proxy
 initialization should take place here; but in general don't register
 handlers for this phase.
 
-=item request_send => sub { my($request, $ua, $h) = @_; ... }
+=item request_send => sub { my($request, $ua, $handler) = @_; ... }
 
 This handler gets a chance of handling requests before they're sent to the
-protocol handlers.  It should return an HTTP::Response object if it
+protocol handlers.  It should return an L<HTTP::Response> object if it
 wishes to terminate the processing; otherwise it should return nothing.
 
 The C<response_header> and C<response_data> handlers will not be
 invoked for this response, but the C<response_done> will be.
 
-=item response_redirect => sub { my($response, $ua, $h) = @_; ... }
+=item response_redirect => sub { my($response, $ua, $handler) = @_; ... }
 
-The handler is called in $ua->request after C<response_done>.  If the
-handler returns an HTTP::Request object we'll start over with processing
+The handler is called in C<< $ua->request >> after C<response_done>.  If the
+handler returns an L<HTTP::Request> object we'll start over with processing
 this request instead.
 
 =back
 
+For all of these, C<$handler> is a code reference to the handler that
+is currently being run.
+
 =head2 get_my_handler
 
     $ua->get_my_handler( $phase, %matchspec );
index 89fc96e01e90ca190d0aad0d51b91c070dfae05a..29a57b64a96accd9c1f35dd3cf3ece089d5f173c 100644 (file)
@@ -16,7 +16,7 @@ delete $ENV{PERL_LWP_ENV_PROXY};
 my $ua = LWP::UserAgent->new;
 $ua->add_handler(
     request_send => sub {
-        my ($request, $ua, $h) = @_;
+        my ($request, $ua, $handler) = @_;
         return HTTP::Response->new(200,'OK',[],'ok');
     }
 );
index c16080c61b78c65eba1bf270d48ab326216e625e..ff18ea7f739038c162f2ea815980a7ac3e88e051 100644 (file)
@@ -116,7 +116,10 @@ foreach my $file (@scripts)
 
 
 
+TODO: {
+local $TODO = 'Data::Dump::Trace warns on 5.8' if $] < '5.009';
 is(scalar(@warnings), 0, 'no warnings found')
     or diag 'got warnings: ', explain(\@warnings);
+}
 
 BAIL_OUT("Compilation problems") if !Test::More->builder->is_passing;
diff --git a/xt/author/live/jigsaw/redirect-post.t b/xt/author/live/jigsaw/redirect-post.t
new file mode 100644 (file)
index 0000000..01271ef
--- /dev/null
@@ -0,0 +1,43 @@
+use strict;
+use warnings;
+use Test::More;
+use Test::RequiresInternet ('jigsaw.w3.org' => 80);
+
+use HTTP::Request;
+use LWP::UserAgent;
+use JSON::PP qw(encode_json);
+use Encode qw(encode_utf8);
+
+plan tests => 10;
+
+my $ua = LWP::UserAgent->new(keep_alive => 1);
+
+my $data = {foo => 'bar', baz => 'quux'};
+my $encoded_data = encode_utf8(encode_json($data));
+
+# 307 not redirectable.
+my $req = HTTP::Request->new('POST', "http://jigsaw.w3.org/HTTP/300/Go_307", undef, undef);
+my $res = $ua->request($req);
+isa_ok($res, 'HTTP::Response', 'request: Got a proper response');
+is($res->code, 307, 'Got a 307 response');
+
+push @{ $ua->requests_redirectable }, 'POST';
+
+# POST can redirect, so support 307 (post to redirected location)
+$res = $ua->request($req);
+isa_ok($res, 'HTTP::Response', 'request: POST redirect got a proper response');
+my $uri = $res->request->uri->as_string;
+my $content = $res->content;
+
+# first we POST to 307
+unlike($uri, qr/Go_307/, 'POST to 307 endpoint was a POST');
+unlike($content, qr/GET not implemented/, 'response was not a GET');
+
+# we get redirected to 303
+unlike($uri, qr/Go_303/, 'POST to 303 endpoint was a POST');
+unlike($content, qr/GET not implemented/, 'response was not a GET');
+
+# Go_303 returns a 303 header, so we must GET the redirected location here
+like($uri, qr/303_ok\.html/, 'redirected to the correct page');
+unlike($content, qr/POST not allowed on this resource/, '303 OK endpoint was not a POST');
+like($content, qr/Your browser made it!/, 'response shows that we followed a 307 POST redirect and then a 303 GET redirect');
diff --git a/xt/author/misc/pod.t b/xt/author/misc/pod.t
deleted file mode 100644 (file)
index 1cee503..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-use strict;
-use warnings;
-
-use Test::More;
-
-plan skip_all => "Test::Pod 1.00 required for testing POD" unless eval 'use Test::Pod 1.00; 1';
-
-all_pod_files_ok();
index 37d87d509ddfeaf70af1b28100605e0a85f66268..f1fb35d4b72377bfe9bc83bbc722aab4c805790a 100644 (file)
@@ -138,6 +138,7 @@ Krüger
 Kubb
 König
 LWP
+LaBelle
 Laker
 Langfeldt
 Langheinrich
@@ -179,6 +180,7 @@ Newell
 Nicolai
 Nierstrasz
 Nigel
+Nik
 Ntlm
 Olaf
 Olly
@@ -342,6 +344,7 @@ michealgong
 michiel
 mmcleric
 murphy
+nalabelle
 naveedm9
 nawglan
 nigelgregoire
@@ -364,6 +367,7 @@ sburke
 schwern
 shaohua
 shildreth
+simbabque
 skaji
 slaven
 sprout
index 8d83f4ba72859acfd0ebc6e2736871029d14981e..75c9ec2ebd9311346d4d27317a109cc1df0df60c 100644 (file)
@@ -8,7 +8,7 @@ if (($ENV{TRAVIS_PULL_REQUEST} || '') eq 'false') {
 
 note 'Checking Changes';
 my $changes_file = 'Changes';
-my $newver = '6.36';
+my $newver = '6.37';
 my $trial_token = '-TRIAL';
 my $encoding = 'UTF-8';