This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update HTTP-Tiny to CPAN version 0.051
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Tue, 18 Nov 2014 09:47:48 +0000 (09:47 +0000)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Tue, 18 Nov 2014 09:47:48 +0000 (09:47 +0000)
  [DELTA]

0.051     2014-11-17 22:58:44-05:00 America/New_York

    [FIXED]

    - Checks for threads without loading threads.pm

81 files changed:
MANIFEST
Porting/Maintainers.pl
cpan/HTTP-Tiny/corpus/auth-01.txt [moved from cpan/HTTP-Tiny/t/cases/auth-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/auth-02.txt [moved from cpan/HTTP-Tiny/t/cases/auth-02.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/auth-03.txt [moved from cpan/HTTP-Tiny/t/cases/auth-03.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/auth-04.txt [moved from cpan/HTTP-Tiny/t/cases/auth-04.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/auth-05.txt [moved from cpan/HTTP-Tiny/t/cases/auth-05.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/cookies-01.txt [moved from cpan/HTTP-Tiny/t/cases/cookies-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/cookies-02.txt [moved from cpan/HTTP-Tiny/t/cases/cookies-02.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/cookies-03.txt [moved from cpan/HTTP-Tiny/t/cases/cookies-03.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/cookies-04.txt [moved from cpan/HTTP-Tiny/t/cases/cookies-04.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/cookies-05.txt [moved from cpan/HTTP-Tiny/t/cases/cookies-05.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/cookies-06.txt [moved from cpan/HTTP-Tiny/t/cases/cookies-06.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/cookies-07.txt [moved from cpan/HTTP-Tiny/t/cases/cookies-07.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/delete-01.txt [moved from cpan/HTTP-Tiny/t/cases/delete-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/form-01.txt [moved from cpan/HTTP-Tiny/t/cases/form-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/form-02.txt [moved from cpan/HTTP-Tiny/t/cases/form-02.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/form-03.txt [moved from cpan/HTTP-Tiny/t/cases/form-03.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/form-04.txt [moved from cpan/HTTP-Tiny/t/cases/form-04.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/form-05.txt [moved from cpan/HTTP-Tiny/t/cases/form-05.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-01.txt [moved from cpan/HTTP-Tiny/t/cases/get-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-02.txt [moved from cpan/HTTP-Tiny/t/cases/get-02.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-03.txt [moved from cpan/HTTP-Tiny/t/cases/get-03.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-04.txt [moved from cpan/HTTP-Tiny/t/cases/get-04.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-05.txt [moved from cpan/HTTP-Tiny/t/cases/get-05.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-06.txt [moved from cpan/HTTP-Tiny/t/cases/get-06.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-07.txt [moved from cpan/HTTP-Tiny/t/cases/get-07.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-08.txt [moved from cpan/HTTP-Tiny/t/cases/get-08.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-09.txt [moved from cpan/HTTP-Tiny/t/cases/get-09.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-10.txt [moved from cpan/HTTP-Tiny/t/cases/get-10.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-11.txt [moved from cpan/HTTP-Tiny/t/cases/get-11.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-12.txt [moved from cpan/HTTP-Tiny/t/cases/get-12.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-13.txt [moved from cpan/HTTP-Tiny/t/cases/get-13.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-14.txt [moved from cpan/HTTP-Tiny/t/cases/get-14.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-15.txt [moved from cpan/HTTP-Tiny/t/cases/get-15.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-16.txt [moved from cpan/HTTP-Tiny/t/cases/get-16.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-17.txt [moved from cpan/HTTP-Tiny/t/cases/get-17.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-18.txt [moved from cpan/HTTP-Tiny/t/cases/get-18.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-19.txt [moved from cpan/HTTP-Tiny/t/cases/get-19.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-20.txt [moved from cpan/HTTP-Tiny/t/cases/get-20.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/get-21.txt [moved from cpan/HTTP-Tiny/t/cases/get-21.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/head-01.txt [moved from cpan/HTTP-Tiny/t/cases/head-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/keepalive-01.txt [moved from cpan/HTTP-Tiny/t/cases/keepalive-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/keepalive-02.txt [moved from cpan/HTTP-Tiny/t/cases/keepalive-02.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/keepalive-03.txt [moved from cpan/HTTP-Tiny/t/cases/keepalive-03.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/keepalive-04.txt [moved from cpan/HTTP-Tiny/t/cases/keepalive-04.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/keepalive-05.txt [moved from cpan/HTTP-Tiny/t/cases/keepalive-05.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/mirror-01.txt [moved from cpan/HTTP-Tiny/t/cases/mirror-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/mirror-02.txt [moved from cpan/HTTP-Tiny/t/cases/mirror-02.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/mirror-03.txt [moved from cpan/HTTP-Tiny/t/cases/mirror-03.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/mirror-04.txt [moved from cpan/HTTP-Tiny/t/cases/mirror-04.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/mirror-05.txt [moved from cpan/HTTP-Tiny/t/cases/mirror-05.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/post-01.txt [moved from cpan/HTTP-Tiny/t/cases/post-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/proxy-auth-01.txt [moved from cpan/HTTP-Tiny/t/cases/proxy-auth-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/put-01.txt [moved from cpan/HTTP-Tiny/t/cases/put-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/put-02.txt [moved from cpan/HTTP-Tiny/t/cases/put-02.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/put-03.txt [moved from cpan/HTTP-Tiny/t/cases/put-03.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/put-04.txt [moved from cpan/HTTP-Tiny/t/cases/put-04.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/put-05.txt [moved from cpan/HTTP-Tiny/t/cases/put-05.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/redirect-01.txt [moved from cpan/HTTP-Tiny/t/cases/redirect-01.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/redirect-02.txt [moved from cpan/HTTP-Tiny/t/cases/redirect-02.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/redirect-03.txt [moved from cpan/HTTP-Tiny/t/cases/redirect-03.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/redirect-04.txt [moved from cpan/HTTP-Tiny/t/cases/redirect-04.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/redirect-05.txt [moved from cpan/HTTP-Tiny/t/cases/redirect-05.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/redirect-06.txt [moved from cpan/HTTP-Tiny/t/cases/redirect-06.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/redirect-07.txt [moved from cpan/HTTP-Tiny/t/cases/redirect-07.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/redirect-08.txt [moved from cpan/HTTP-Tiny/t/cases/redirect-08.txt with 100% similarity]
cpan/HTTP-Tiny/corpus/redirect-09.txt [moved from cpan/HTTP-Tiny/t/cases/redirect-09.txt with 100% similarity]
cpan/HTTP-Tiny/lib/HTTP/Tiny.pm
cpan/HTTP-Tiny/t/100_get.t
cpan/HTTP-Tiny/t/101_head.t
cpan/HTTP-Tiny/t/102_put.t
cpan/HTTP-Tiny/t/103_delete.t
cpan/HTTP-Tiny/t/104_post.t
cpan/HTTP-Tiny/t/110_mirror.t
cpan/HTTP-Tiny/t/130_redirect.t
cpan/HTTP-Tiny/t/150_post_form.t
cpan/HTTP-Tiny/t/160_cookies.t
cpan/HTTP-Tiny/t/161_basic_auth.t
cpan/HTTP-Tiny/t/162_proxy_auth.t
cpan/HTTP-Tiny/t/170_keepalive.t

index 958aaca..0cb04cf 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1107,6 +1107,72 @@ cpan/Getopt-Long/t/gol-linkage.t See if Getopt::Long works
 cpan/Getopt-Long/t/gol-oo.t            See if Getopt::Long works
 cpan/Getopt-Long/t/gol-xargv.t         See if Getopt::Long works
 cpan/Getopt-Long/t/gol-xstring.t       See if Getopt::Long works
+cpan/HTTP-Tiny/corpus/auth-01.txt
+cpan/HTTP-Tiny/corpus/auth-02.txt
+cpan/HTTP-Tiny/corpus/auth-03.txt
+cpan/HTTP-Tiny/corpus/auth-04.txt
+cpan/HTTP-Tiny/corpus/auth-05.txt
+cpan/HTTP-Tiny/corpus/cookies-01.txt
+cpan/HTTP-Tiny/corpus/cookies-02.txt
+cpan/HTTP-Tiny/corpus/cookies-03.txt
+cpan/HTTP-Tiny/corpus/cookies-04.txt
+cpan/HTTP-Tiny/corpus/cookies-05.txt
+cpan/HTTP-Tiny/corpus/cookies-06.txt
+cpan/HTTP-Tiny/corpus/cookies-07.txt
+cpan/HTTP-Tiny/corpus/delete-01.txt
+cpan/HTTP-Tiny/corpus/form-01.txt
+cpan/HTTP-Tiny/corpus/form-02.txt
+cpan/HTTP-Tiny/corpus/form-03.txt
+cpan/HTTP-Tiny/corpus/form-04.txt
+cpan/HTTP-Tiny/corpus/form-05.txt
+cpan/HTTP-Tiny/corpus/get-01.txt
+cpan/HTTP-Tiny/corpus/get-02.txt
+cpan/HTTP-Tiny/corpus/get-03.txt
+cpan/HTTP-Tiny/corpus/get-04.txt
+cpan/HTTP-Tiny/corpus/get-05.txt
+cpan/HTTP-Tiny/corpus/get-06.txt
+cpan/HTTP-Tiny/corpus/get-07.txt
+cpan/HTTP-Tiny/corpus/get-08.txt
+cpan/HTTP-Tiny/corpus/get-09.txt
+cpan/HTTP-Tiny/corpus/get-10.txt
+cpan/HTTP-Tiny/corpus/get-11.txt
+cpan/HTTP-Tiny/corpus/get-12.txt
+cpan/HTTP-Tiny/corpus/get-13.txt
+cpan/HTTP-Tiny/corpus/get-14.txt
+cpan/HTTP-Tiny/corpus/get-15.txt
+cpan/HTTP-Tiny/corpus/get-16.txt
+cpan/HTTP-Tiny/corpus/get-17.txt
+cpan/HTTP-Tiny/corpus/get-18.txt
+cpan/HTTP-Tiny/corpus/get-19.txt
+cpan/HTTP-Tiny/corpus/get-20.txt
+cpan/HTTP-Tiny/corpus/get-21.txt
+cpan/HTTP-Tiny/corpus/head-01.txt
+cpan/HTTP-Tiny/corpus/keepalive-01.txt
+cpan/HTTP-Tiny/corpus/keepalive-02.txt
+cpan/HTTP-Tiny/corpus/keepalive-03.txt
+cpan/HTTP-Tiny/corpus/keepalive-04.txt
+cpan/HTTP-Tiny/corpus/keepalive-05.txt
+cpan/HTTP-Tiny/corpus/mirror-01.txt
+cpan/HTTP-Tiny/corpus/mirror-02.txt
+cpan/HTTP-Tiny/corpus/mirror-03.txt
+cpan/HTTP-Tiny/corpus/mirror-04.txt
+cpan/HTTP-Tiny/corpus/mirror-05.txt
+cpan/HTTP-Tiny/corpus/post-01.txt
+cpan/HTTP-Tiny/corpus/proxy-auth-01.txt
+cpan/HTTP-Tiny/corpus/put-01.txt
+cpan/HTTP-Tiny/corpus/put-02.txt
+cpan/HTTP-Tiny/corpus/put-03.txt
+cpan/HTTP-Tiny/corpus/put-04.txt
+cpan/HTTP-Tiny/corpus/put-05.txt
+cpan/HTTP-Tiny/corpus/redirect-01.txt
+cpan/HTTP-Tiny/corpus/redirect-02.txt
+cpan/HTTP-Tiny/corpus/redirect-03.txt
+cpan/HTTP-Tiny/corpus/redirect-04.txt
+cpan/HTTP-Tiny/corpus/redirect-05.txt
+cpan/HTTP-Tiny/corpus/redirect-06.txt
+cpan/HTTP-Tiny/corpus/redirect-07.txt
+cpan/HTTP-Tiny/corpus/redirect-08.txt
+cpan/HTTP-Tiny/corpus/redirect-09.txt
 cpan/HTTP-Tiny/lib/HTTP/Tiny.pm
 cpan/HTTP-Tiny/t/000_load.t
 cpan/HTTP-Tiny/t/001_api.t
@@ -1134,72 +1200,6 @@ cpan/HTTP-Tiny/t/161_basic_auth.t
 cpan/HTTP-Tiny/t/162_proxy_auth.t
 cpan/HTTP-Tiny/t/170_keepalive.t
 cpan/HTTP-Tiny/t/BrokenCookieJar.pm
-cpan/HTTP-Tiny/t/cases/auth-01.txt
-cpan/HTTP-Tiny/t/cases/auth-02.txt
-cpan/HTTP-Tiny/t/cases/auth-03.txt
-cpan/HTTP-Tiny/t/cases/auth-04.txt
-cpan/HTTP-Tiny/t/cases/auth-05.txt
-cpan/HTTP-Tiny/t/cases/cookies-01.txt
-cpan/HTTP-Tiny/t/cases/cookies-02.txt
-cpan/HTTP-Tiny/t/cases/cookies-03.txt
-cpan/HTTP-Tiny/t/cases/cookies-04.txt
-cpan/HTTP-Tiny/t/cases/cookies-05.txt
-cpan/HTTP-Tiny/t/cases/cookies-06.txt
-cpan/HTTP-Tiny/t/cases/cookies-07.txt
-cpan/HTTP-Tiny/t/cases/delete-01.txt
-cpan/HTTP-Tiny/t/cases/form-01.txt
-cpan/HTTP-Tiny/t/cases/form-02.txt
-cpan/HTTP-Tiny/t/cases/form-03.txt
-cpan/HTTP-Tiny/t/cases/form-04.txt
-cpan/HTTP-Tiny/t/cases/form-05.txt
-cpan/HTTP-Tiny/t/cases/get-01.txt
-cpan/HTTP-Tiny/t/cases/get-02.txt
-cpan/HTTP-Tiny/t/cases/get-03.txt
-cpan/HTTP-Tiny/t/cases/get-04.txt
-cpan/HTTP-Tiny/t/cases/get-05.txt
-cpan/HTTP-Tiny/t/cases/get-06.txt
-cpan/HTTP-Tiny/t/cases/get-07.txt
-cpan/HTTP-Tiny/t/cases/get-08.txt
-cpan/HTTP-Tiny/t/cases/get-09.txt
-cpan/HTTP-Tiny/t/cases/get-10.txt
-cpan/HTTP-Tiny/t/cases/get-11.txt
-cpan/HTTP-Tiny/t/cases/get-12.txt
-cpan/HTTP-Tiny/t/cases/get-13.txt
-cpan/HTTP-Tiny/t/cases/get-14.txt
-cpan/HTTP-Tiny/t/cases/get-15.txt
-cpan/HTTP-Tiny/t/cases/get-16.txt
-cpan/HTTP-Tiny/t/cases/get-17.txt
-cpan/HTTP-Tiny/t/cases/get-18.txt
-cpan/HTTP-Tiny/t/cases/get-19.txt
-cpan/HTTP-Tiny/t/cases/get-20.txt
-cpan/HTTP-Tiny/t/cases/get-21.txt
-cpan/HTTP-Tiny/t/cases/head-01.txt
-cpan/HTTP-Tiny/t/cases/keepalive-01.txt
-cpan/HTTP-Tiny/t/cases/keepalive-02.txt
-cpan/HTTP-Tiny/t/cases/keepalive-03.txt
-cpan/HTTP-Tiny/t/cases/keepalive-04.txt
-cpan/HTTP-Tiny/t/cases/keepalive-05.txt
-cpan/HTTP-Tiny/t/cases/mirror-01.txt
-cpan/HTTP-Tiny/t/cases/mirror-02.txt
-cpan/HTTP-Tiny/t/cases/mirror-03.txt
-cpan/HTTP-Tiny/t/cases/mirror-04.txt
-cpan/HTTP-Tiny/t/cases/mirror-05.txt
-cpan/HTTP-Tiny/t/cases/post-01.txt
-cpan/HTTP-Tiny/t/cases/proxy-auth-01.txt
-cpan/HTTP-Tiny/t/cases/put-01.txt
-cpan/HTTP-Tiny/t/cases/put-02.txt
-cpan/HTTP-Tiny/t/cases/put-03.txt
-cpan/HTTP-Tiny/t/cases/put-04.txt
-cpan/HTTP-Tiny/t/cases/put-05.txt
-cpan/HTTP-Tiny/t/cases/redirect-01.txt
-cpan/HTTP-Tiny/t/cases/redirect-02.txt
-cpan/HTTP-Tiny/t/cases/redirect-03.txt
-cpan/HTTP-Tiny/t/cases/redirect-04.txt
-cpan/HTTP-Tiny/t/cases/redirect-05.txt
-cpan/HTTP-Tiny/t/cases/redirect-06.txt
-cpan/HTTP-Tiny/t/cases/redirect-07.txt
-cpan/HTTP-Tiny/t/cases/redirect-08.txt
-cpan/HTTP-Tiny/t/cases/redirect-09.txt
 cpan/HTTP-Tiny/t/SimpleCookieJar.pm
 cpan/HTTP-Tiny/t/Util.pm
 cpan/IO-Compress/bin/zipdetails                                IO::Compress
index b8e8b79..7efd029 100755 (executable)
@@ -18,9 +18,9 @@ use File::Glob qw(:case);
 @IGNORABLE = qw(
     .cvsignore .dualLivedDiffConfig .gitignore .perlcriticrc .perltidyrc
     ANNOUNCE Announce Artistic AUTHORS BENCHMARK BUGS Build.PL
-    CHANGELOG ChangeLog Changelog CHANGES Changes CONTRIBUTING COPYING Copying
-    cpanfile CREDITS dist.ini GOALS HISTORY INSTALL INSTALL.SKIP LICENSE
-    Makefile.PL MANIFEST MANIFEST.SKIP META.json META.yml MYMETA.json
+    CHANGELOG ChangeLog Changelog CHANGES Changes CONTRIBUTING CONTRIBUTING.mkdn
+    COPYING Copying cpanfile CREDITS dist.ini GOALS HISTORY INSTALL INSTALL.skip
+    LICENSE Makefile.PL MANIFEST MANIFEST.SKIP META.json META.yml MYMETA.json
     MYMETA.yml NEW NEWS NOTES perlcritic.rc ppport.h README README.PATCHING
     SIGNATURE THANKS TODO Todo VERSION WHATSNEW
 );
@@ -587,7 +587,7 @@ use File::Glob qw(:case);
     },
 
     'HTTP::Tiny' => {
-        'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.050.tar.gz',
+        'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.051.tar.gz',
         'FILES'        => q[cpan/HTTP-Tiny],
         'EXCLUDED'     => [
             't/00-report-prereqs.t',
index 95797d0..d8bd719 100644 (file)
@@ -3,7 +3,8 @@ package HTTP::Tiny;
 use strict;
 use warnings;
 # ABSTRACT: A small, simple, correct HTTP/1.1 client
-our $VERSION = '0.050'; # VERSION
+
+our $VERSION = '0.051';
 
 use Carp ();
 
@@ -471,7 +472,7 @@ my %DefaultPort = (
 sub _agent {
     my $class = ref($_[0]) || $_[0];
     (my $default_agent = $class) =~ s{::}{-}g;
-    return $default_agent . "/" . ($class->VERSION || 0);
+    return $default_agent . "/" . $class->VERSION;
 }
 
 sub _request {
@@ -862,15 +863,6 @@ use warnings;
 use Errno      qw[EINTR EPIPE];
 use IO::Socket qw[SOCK_STREAM];
 
-# for thread safety, we need to know thread id or else fake it;
-# requires "threads.pm" to hide it from the minimum version detector
-if ( eval { require "threads.pm"; 1 } ) { ## no critic
-    *_get_tid = sub { threads->tid };
-}
-else {
-    *_get_tid = sub () { 0 };
-}
-
 # PERL_HTTP_TINY_IPV4_ONLY is a private environment variable to force old
 # behavior if someone is unable to boostrap CPAN from a new perl install; it is
 # not intended for general, per-client use and may be removed in the future
@@ -1414,6 +1406,12 @@ sub _find_CA_file {
       . qq/Try installing Mozilla::CA from CPAN\n/;
 }
 
+# for thread safety, we need to know thread id if threads are loaded
+sub _get_tid {
+    no warnings 'reserved'; # for 'threads'
+    return threads->can("tid") ? threads->tid : 0;
+}
+
 sub _ssl_args {
     my ($self, $host) = @_;
 
@@ -1458,7 +1456,7 @@ HTTP::Tiny - A small, simple, correct HTTP/1.1 client
 
 =head1 VERSION
 
-version 0.050
+version 0.051
 
 =head1 SYNOPSIS
 
@@ -2023,7 +2021,7 @@ David Golden <dagolden@cpan.org>
 
 =head1 CONTRIBUTORS
 
-=for stopwords Alan Gardner Edward Zborowski James Raspass Jess Robinson Lukas Eklund Martin J. Evans Martin-Louis Bright Mike Doherty Petr Písař Serguei Trouchelle Syohei YOSHIDA Alessandro Ghedini Sören Kornetzki Tom Hukins Tony Cook Brad Gilbert Chris Nehren Weyl Claes Jakobsson Clinton Gormley Craig Berry David Mitchell Dean Pearce
+=for stopwords Alan Gardner Alessandro Ghedini Brad Gilbert Chris Nehren Weyl Claes Jakobsson Clinton Gormley Craig Berry David Mitchell Dean Pearce Edward Zborowski James Raspass Jess Robinson Lukas Eklund Martin J. Evans Martin-Louis Bright Mike Doherty Petr Písař Serguei Trouchelle Sören Kornetzki Syohei YOSHIDA Tom Hukins Tony Cook
 
 =over 4
 
@@ -2033,91 +2031,91 @@ Alan Gardner <gardner@pythian.com>
 
 =item *
 
-Edward Zborowski <ed@rubensteintech.com>
+Alessandro Ghedini <al3xbio@gmail.com>
 
 =item *
 
-James Raspass <jraspass@gmail.com>
+Brad Gilbert <bgills@cpan.org>
 
 =item *
 
-Jess Robinson <castaway@desert-island.me.uk>
+Chris Nehren <apeiron@cpan.org>
 
 =item *
 
-Lukas Eklund <leklund@gmail.com>
+Chris Weyl <cweyl@alumni.drew.edu>
 
 =item *
 
-Martin J. Evans <mjegh@ntlworld.com>
+Claes Jakobsson <claes@surfar.nu>
 
 =item *
 
-Martin-Louis Bright <mlbright@gmail.com>
+Clinton Gormley <clint@traveljury.com>
 
 =item *
 
-Mike Doherty <doherty@cpan.org>
+Craig Berry <cberry@cpan.org>
 
 =item *
 
-Petr Písař <ppisar@redhat.com>
+David Mitchell <davem@iabyn.com>
 
 =item *
 
-Serguei Trouchelle <stro@cpan.org>
+Dean Pearce <pearce@pythian.com>
 
 =item *
 
-Syohei YOSHIDA <syohex@gmail.com>
+Edward Zborowski <ed@rubensteintech.com>
 
 =item *
 
-Alessandro Ghedini <al3xbio@gmail.com>
+James Raspass <jraspass@gmail.com>
 
 =item *
 
-Sören Kornetzki <soeren.kornetzki@delti.com>
+Jess Robinson <castaway@desert-island.me.uk>
 
 =item *
 
-Tom Hukins <tom@eborcom.com>
+Lukas Eklund <leklund@gmail.com>
 
 =item *
 
-Tony Cook <tony@develop-help.com>
+Martin J. Evans <mjegh@ntlworld.com>
 
 =item *
 
-Brad Gilbert <bgills@cpan.org>
+Martin-Louis Bright <mlbright@gmail.com>
 
 =item *
 
-Chris Nehren <apeiron@cpan.org>
+Mike Doherty <doherty@cpan.org>
 
 =item *
 
-Chris Weyl <rsrchboy@cpan.org>
+Petr Písař <ppisar@redhat.com>
 
 =item *
 
-Claes Jakobsson <claes@surfar.nu>
+Serguei Trouchelle <stro@cpan.org>
 
 =item *
 
-Clinton Gormley <clint@traveljury.com>
+Sören Kornetzki <soeren.kornetzki@delti.com>
 
 =item *
 
-Craig Berry <cberry@cpan.org>
+Syohei YOSHIDA <syohex@gmail.com>
 
 =item *
 
-David Mitchell <davem@iabyn.com>
+Tom Hukins <tom@eborcom.com>
 
 =item *
 
-Dean Pearce <pearce@pythian.com>
+Tony Cook <tony@develop-help.com>
 
 =back
 
index 228788f..401fa7d 100644 (file)
@@ -11,7 +11,7 @@ use t::Util qw[tmpfile rewind slurp monkey_patch dir_list parse_case
 use HTTP::Tiny;
 BEGIN { monkey_patch() }
 
-for my $file ( dir_list("t/cases", qr/^get/ ) ) {
+for my $file ( dir_list("corpus", qr/^get/ ) ) {
   my $label = basename($file);
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, $expect_req, $give_res) = split /--+\n/, $data;
index c9a29a3..7a2e6ce 100644 (file)
@@ -10,7 +10,7 @@ use t::Util    qw[tmpfile rewind slurp monkey_patch dir_list parse_case
 use HTTP::Tiny;
 BEGIN { monkey_patch() }
 
-for my $file ( dir_list("t/cases", qr/^head/ ) ) {
+for my $file ( dir_list("corpus", qr/^head/ ) ) {
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, $expect_req, $give_res) = split /--+\n/, $data;
   # cleanup source data
index e9a086e..42f3ed9 100644 (file)
@@ -10,7 +10,7 @@ use t::Util    qw[tmpfile rewind slurp monkey_patch dir_list parse_case
 use HTTP::Tiny;
 BEGIN { monkey_patch() }
 
-for my $file ( dir_list("t/cases", qr/^put/ ) ) {
+for my $file ( dir_list("corpus", qr/^put/ ) ) {
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, $expect_req, $give_res) = split /--+\n/, $data;
   # cleanup source data
index 767008b..cbda117 100644 (file)
@@ -10,7 +10,7 @@ use t::Util    qw[tmpfile rewind slurp monkey_patch dir_list parse_case
 use HTTP::Tiny;
 BEGIN { monkey_patch() }
 
-for my $file ( dir_list("t/cases", qr/^delete/ ) ) {
+for my $file ( dir_list("corpus", qr/^delete/ ) ) {
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, $expect_req, $give_res) = split /--+\n/, $data;
   # cleanup source data
index 8cb2983..5dc518a 100644 (file)
@@ -10,7 +10,7 @@ use t::Util    qw[tmpfile rewind slurp monkey_patch dir_list parse_case
 use HTTP::Tiny;
 BEGIN { monkey_patch() }
 
-for my $file ( dir_list("t/cases", qr/^post/ ) ) {
+for my $file ( dir_list("corpus", qr/^post/ ) ) {
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, $expect_req, $give_res) = split /--+\n/, $data;
   # cleanup source data
index f8ef2ab..e31b747 100644 (file)
@@ -24,7 +24,7 @@ my %timestamp = (
   'not-modified.txt'  => $known_epoch - 2 * $day,
 );
 
-for my $file ( dir_list("t/cases", qr/^mirror/ ) ) {
+for my $file ( dir_list("corpus", qr/^mirror/ ) ) {
   1 while unlink $tempfile;
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, $expect_req, $give_res) = split /--+\n/, $data;
index 377891c..5de1d17 100644 (file)
@@ -12,7 +12,7 @@ use t::Util qw[tmpfile rewind slurp monkey_patch dir_list parse_case
 use HTTP::Tiny;
 BEGIN { monkey_patch() }
 
-for my $file ( dir_list("t/cases", qr/^redirect/ ) ) {
+for my $file ( dir_list("corpus", qr/^redirect/ ) ) {
   my $label = basename($file);
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, @case_pairs) = split /--+\n/, $data;
index 07d937b..edb0601 100644 (file)
@@ -11,7 +11,7 @@ use t::Util    qw[tmpfile rewind slurp monkey_patch dir_list parse_case
 use HTTP::Tiny;
 BEGIN { monkey_patch() }
 
-for my $file ( dir_list("t/cases", qr/^form/ ) ) {
+for my $file ( dir_list("corpus", qr/^form/ ) ) {
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, $expect_req, $give_res) = split /--+\n/, $data;
   # cleanup source data
index ecd5a6b..1702fa3 100644 (file)
@@ -18,7 +18,7 @@ SKIP: for my $class ( qw/t::SimpleCookieJar HTTP::CookieJar/ ) {
         eval "require $class; 1"
             or plan skip_all => "Needs $class";
 
-        for my $file ( dir_list("t/cases", qr/^cookies/ ) ) {
+        for my $file ( dir_list("corpus", qr/^cookies/ ) ) {
             my $label = basename($file);
             my $data = do { local (@ARGV,$/) = $file; <> };
             my @cases = split /--+\n/, $data;
index 292b336..3fd233d 100644 (file)
@@ -12,7 +12,7 @@ use t::Util qw[tmpfile rewind slurp monkey_patch dir_list parse_case
 use HTTP::Tiny;
 BEGIN { monkey_patch() }
 
-for my $file ( dir_list("t/cases", qr/^auth/ ) ) {
+for my $file ( dir_list("corpus", qr/^auth/ ) ) {
   my $label = basename($file);
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, @case_pairs) = split /--+\n/, $data;
index bad44c4..400c9d9 100644 (file)
@@ -12,7 +12,7 @@ use t::Util qw[tmpfile rewind slurp monkey_patch dir_list parse_case
 use HTTP::Tiny;
 BEGIN { monkey_patch() }
 
-for my $file ( dir_list("t/cases", qr/^proxy-auth/ ) ) {
+for my $file ( dir_list("corpus", qr/^proxy-auth/ ) ) {
   my $label = basename($file);
   my $data = do { local (@ARGV,$/) = $file; <> };
   my ($params, @case_pairs) = split /--+\n/, $data;
index 1ea1fd0..8b26512 100644 (file)
@@ -59,7 +59,7 @@ new_ht();
 $h->{handle}->close;
 test_ht( "Socket closed", 0, 'http://foo.com' );
 
-for my $file ( dir_list( "t/cases", qr/^keepalive/ ) ) {
+for my $file ( dir_list( "corpus", qr/^keepalive/ ) ) {
     my $label = basename($file);
     my $data = do { local ( @ARGV, $/ ) = $file; <> };
     my ( $title, $ok, $response ) = map { trim($_) } split /--+/, $data;