Changeset 7759

Show
Ignore:
Timestamp:
03/10/08 16:44:22 (5 years ago)
Author:
lyokato
Message:

lang/perl/OAuth-Lite: Checking in changes prior to tagging of version 1.08. Changelog diff is:

Index: Changes
===================================================================
--- Changes (リビジョン 7754)
+++ Changes (作業コピー)
@@ -1,5 +1,11 @@

Revision history for Perl extension OAuth::Lite.


+1.08 Mon Mar 10 16:03:00 2008
+ - rt #33943
+ added Content-Length header in case request method is POST or PUT,
+ at the end of Consumer::gen_oauth_request.
+ Thanks, TOMI.
+

1.07 Sun Jan 20 15:12:00 2008

  • put sorting process into building query-string process.
    The hash keys order is deferrent between perl environments.
Location:
lang/perl/OAuth-Lite/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/OAuth-Lite/trunk/Changes

    r5043 r7759  
    11Revision history for Perl extension OAuth::Lite. 
     2 
     31.08  Mon Mar 10 16:03:00 2008 
     4    - rt #33943 
     5      added Content-Length header in case request method is POST or PUT, 
     6      at the end of Consumer::gen_oauth_request. 
     7      Thanks, TOMI. 
    28 
    391.07  Sun Jan 20 15:12:00 2008 
  • lang/perl/OAuth-Lite/trunk/lib/OAuth/Lite.pm

    r5043 r7759  
    44use warnings; 
    55 
    6 our $VERSION = "1.07"; 
     6our $VERSION = "1.08"; 
    77our $OAUTH_DEFAULT_VERSION = "1.0"; 
    88 
  • lang/perl/OAuth-Lite/trunk/lib/OAuth/Lite/Consumer.pm

    r5043 r7759  
    2323 
    2424use Carp (); 
     25use bytes (); 
    2526use URI; 
    2627use HTTP::Request; 
     
    511512    } 
    512513 
    513                 my @send_data_methods = qw/POST PUT/; 
    514                 my @non_send_data_methods = qw/GET HEAD DELETE/; 
    515     if (any { $method eq $_ } @send_data_methods) { 
    516         $headers->header('Content-Type', q{application/x-www-form-urlencoded}) 
    517             unless $headers->header('Content-Type'); 
    518     } 
     514    my @send_data_methods = qw/POST PUT/; 
     515    my @non_send_data_methods = qw/GET HEAD DELETE/; 
    519516 
    520517    my $auth_method = $self->{auth_method}; 
     
    547544        } 
    548545    } 
     546    if (any { $method eq $_ } @send_data_methods) { 
     547        $headers->header('Content-Type', q{application/x-www-form-urlencoded}) 
     548            unless $headers->header('Content-Type'); 
     549        $headers->header('Content-Length', bytes::length($content) ); 
     550    } 
    549551    my $req = HTTP::Request->new( $method, $url, $headers, $content ); 
    550552    $req;