Skip to content

Commit

Permalink
Update HTTP-Tiny to CPAN version 0.058
Browse files Browse the repository at this point in the history
  [DELTA]

0.058     2016-05-03 11:29:57-04:00 America/New_York

    - No changes from 0.057

0.057     2016-04-18 10:17:00-04:00 America/New_York (TRIAL RELEASE)

    [ADDED]

    - Added support for the SSL_CERT_FILE environment variable.

    - Added 'peer' attribute to force a connection to a particular
      server.

    - Added 'connected' method to allow introspection of persistent
      connections.

    - An array reference of redirection result hash references is included
      in the final response hash reference (but only if redirects occur).

    [CHANGED]

    - Because folded headers are obsoleted in the revised RFCs, if CRLF is
      found in header values followed by one or more spaces, they are all
      replaced by a single space.

    [FIXED]

    - Per the RFC, control headers are now sent first before other headers
      (which are sent in arbitrary order).

    - Only well-known headers have their case canonicalized; all other
      headers are sent in the case provided by the user.

    - The 'keep_alive' option now also sets the SO_KEEPALIVE option
      on the underlying socket to help with long-lived, idle connections.

    - Request header field values are now validated against the RFC rules
      (i.e. empty or else space-or-tab separated tokens of printable
      characters).
  • Loading branch information
bingos committed Jun 14, 2016
1 parent b1d776c commit ad96436
Show file tree
Hide file tree
Showing 10 changed files with 283 additions and 74 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Expand Up @@ -1238,6 +1238,7 @@ 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/get-22.txt
cpan/HTTP-Tiny/corpus/head-01.txt
cpan/HTTP-Tiny/corpus/keepalive-01.txt
cpan/HTTP-Tiny/corpus/keepalive-02.txt
Expand Down
2 changes: 1 addition & 1 deletion Porting/Maintainers.pl
Expand Up @@ -576,7 +576,7 @@ package Maintainers;
},

'HTTP::Tiny' => {
'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.056.tar.gz',
'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.058.tar.gz',
'FILES' => q[cpan/HTTP-Tiny],
'EXCLUDED' => [
't/00-report-prereqs.t',
Expand Down
4 changes: 4 additions & 0 deletions cpan/HTTP-Tiny/corpus/get-02.txt
Expand Up @@ -5,13 +5,17 @@ expected
headers
Accept: */*
X-Custom: This is a custom header
x-lower: This is a lower-case custom header
authorization: fake auth data
----------
GET /index.html HTTP/1.1
Host: example.com
Accept: */*
Authorization: fake auth data
Connection: close
User-Agent: HTTP-Tiny/VERSION
X-Custom: This is a custom header
x-lower: This is a lower-case custom header

----------
HTTP/1.1 200 OK
Expand Down
10 changes: 10 additions & 0 deletions cpan/HTTP-Tiny/corpus/get-22.txt
@@ -0,0 +1,10 @@
url
http://example.com/index.html
expected_rc
599
expected_like
Invalid HTTP header field
headers
trailing-space : foo
----------
----------

0 comments on commit ad96436

Please sign in to comment.