The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
Changes 031
META.json 68
META.yml 57
lib/Furl/HTTP.pm 33
lib/Furl.pm 11
5 files changed (This is a version diff) 1550
@@ -1,5 +1,36 @@
 Revision history for Perl module Furl
 
+3.06 2015-02-09T23:05:09Z
+
+    commit 8a7786905c101eeab9db1d7baa8c4ec2076f9514
+    Author: Jari Salmela <bissei@users.noreply.github.com>
+    Date:   Fri Feb 6 08:36:55 2015 +0200
+
+        Update HTTP.pm
+
+        fix for keep-alive as zmmail proposed.
+        "In line 526 of Furl/HTTP.pm, FURL checks the HTTP response headers it gets from the server. It will read the C
+    onnection from the response header there, and compare the header value with the string keep-alive. The problem is t
+    hat this does not take into account a different case of the response header. Some HTTP server returns a header valu
+    e of Keep-Alive (mind the caps), so FURL does not recognize it properly.
+
+        I think the following change to Furl/HTTP.pm is more robust.
+
+        if ($connection_header eq 'keep-alive') {
+        if (lc($connection_header) eq 'keep-alive') {"
+
+    commit 91ebdf86693c5bfbda497df167977813e2ad75aa
+    Author: Kazuho Oku <kazuhooku@gmail.com>
+    Date:   Wed Dec 24 16:26:07 2014 +0900
+
+        fix incorrect regex used for testing the response line (amends #80)
+
+    commit 65d0bc170a6344ebd24e0726a44260f3771fda0b
+    Author: HIROSE Masaaki <hirose31@gmail.com>
+    Date:   Wed Dec 24 13:49:43 2014 +0900
+
+        Check only status code when connect SSL over proxy
+
 3.05 2014-09-24T03:47:02Z
 
     - Validate content-length before processing.
@@ -4,7 +4,7 @@
       "Tokuhiro Matsuno <tokuhirom@gmail.com>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Minilla/v2.1.1",
+   "generated_by" : "Minilla/v2.2.0",
    "license" : [
       "perl_5"
    ],
@@ -109,14 +109,14 @@
    "provides" : {
       "Furl" : {
          "file" : "lib/Furl.pm",
-         "version" : "3.05"
+         "version" : "3.06"
       },
       "Furl::ConnectionCache" : {
          "file" : "lib/Furl/ConnectionCache.pm"
       },
       "Furl::HTTP" : {
          "file" : "lib/Furl/HTTP.pm",
-         "version" : "3.05"
+         "version" : "3.06"
       },
       "Furl::Headers" : {
          "file" : "lib/Furl/Headers.pm"
@@ -142,7 +142,7 @@
          "web" : "https://github.com/tokuhirom/Furl"
       }
    },
-   "version" : "3.05",
+   "version" : "3.06",
    "x_contributors" : [
       "Keiji, Yoshimi <walf443@gmail.com>",
       "Fuji, Goro <gfuji@cpan.org>",
@@ -156,9 +156,11 @@
       "xaicron <xaicron@gmail.com>",
       "Syohei YOSHIDA <syohex@gmail.com>",
       "Neil Bowers <neil@bowers.com>",
-      "Kazuho Oku <kazuhooku@gmail.com>",
       "Toshio Ito <debug.ito@gmail.com>",
       "bayashi <bayashi@cpan.org>",
-      "Masahiro Nagano <kazeburo@gmail.com>"
+      "Masahiro Nagano <kazeburo@gmail.com>",
+      "HIROSE Masaaki <hirose31@gmail.com>",
+      "Kazuho Oku <kazuhooku@gmail.com>",
+      "Jari Salmela <bissei@users.noreply.github.com>"
    ]
 }
@@ -10,7 +10,7 @@ build_requires:
 configure_requires:
   Module::Build: '0.38'
 dynamic_config: 0
-generated_by: 'Minilla/v2.1.1, CPAN::Meta::Converter version 2.141520'
+generated_by: 'Minilla/v2.2.0, CPAN::Meta::Converter version 2.141520'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -29,12 +29,12 @@ no_index:
 provides:
   Furl:
     file: lib/Furl.pm
-    version: '3.05'
+    version: '3.06'
   Furl::ConnectionCache:
     file: lib/Furl/ConnectionCache.pm
   Furl::HTTP:
     file: lib/Furl/HTTP.pm
-    version: '3.05'
+    version: '3.06'
   Furl::Headers:
     file: lib/Furl/Headers.pm
   Furl::Request:
@@ -62,7 +62,7 @@ resources:
   bugtracker: https://github.com/tokuhirom/Furl/issues
   homepage: https://github.com/tokuhirom/Furl
   repository: git://github.com/tokuhirom/Furl.git
-version: '3.05'
+version: '3.06'
 x_contributors:
   - 'Keiji, Yoshimi <walf443@gmail.com>'
   - 'Fuji, Goro <gfuji@cpan.org>'
@@ -76,7 +76,9 @@ x_contributors:
   - 'xaicron <xaicron@gmail.com>'
   - 'Syohei YOSHIDA <syohex@gmail.com>'
   - 'Neil Bowers <neil@bowers.com>'
-  - 'Kazuho Oku <kazuhooku@gmail.com>'
   - 'Toshio Ito <debug.ito@gmail.com>'
   - 'bayashi <bayashi@cpan.org>'
   - 'Masahiro Nagano <kazeburo@gmail.com>'
+  - 'HIROSE Masaaki <hirose31@gmail.com>'
+  - 'Kazuho Oku <kazuhooku@gmail.com>'
+  - 'Jari Salmela <bissei@users.noreply.github.com>'
@@ -4,7 +4,7 @@ use warnings;
 use base qw/Exporter/;
 use 5.008001;
 
-our $VERSION = '3.05';
+our $VERSION = '3.06';
 
 use Carp ();
 use Furl::ConnectionCache;
@@ -523,7 +523,7 @@ sub request {
     }
 
     # manage connection cache (i.e. keep-alive)
-    if ($connection_header eq 'keep-alive') {
+    if (lc($connection_header) eq 'keep-alive') {
         my $connection = lc $special_headers->{'connection'};
         if (($res_minor_version == 0
              ? $connection eq 'keep-alive' # HTTP/1.0 needs explicit keep-alive
@@ -681,7 +681,7 @@ sub connect_ssl_over_proxy {
         return (undef, "Cannot read proxy response: " . _strerror_or_timeout());
     } elsif ( $read == 0 ) {    # eof
         return (undef, "Unexpected EOF while reading proxy response");
-    } elsif ( $buf !~ /^HTTP\/1.[01] 200 Connection established\015\012/ ) {
+    } elsif ( $buf !~ /^HTTP\/1\.[0-9] 200 .+\015\012/ ) {
         return (undef, "Invalid HTTP Response via proxy");
     }
 
@@ -6,7 +6,7 @@ use Furl::HTTP;
 use Furl::Request;
 use Furl::Response;
 use Carp ();
-our $VERSION = '3.05';
+our $VERSION = '3.06';
 
 use 5.008001;