Changeset 7759
- Timestamp:
- 03/10/08 16:44:22 (5 years ago)
- Location:
- lang/perl/OAuth-Lite/trunk
- Files:
-
- 3 modified
-
Changes (modified) (1 diff)
-
lib/OAuth/Lite.pm (modified) (1 diff)
-
lib/OAuth/Lite/Consumer.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/OAuth-Lite/trunk/Changes
r5043 r7759 1 1 Revision history for Perl extension OAuth::Lite. 2 3 1.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. 2 8 3 9 1.07 Sun Jan 20 15:12:00 2008 -
lang/perl/OAuth-Lite/trunk/lib/OAuth/Lite.pm
r5043 r7759 4 4 use warnings; 5 5 6 our $VERSION = "1.0 7";6 our $VERSION = "1.08"; 7 7 our $OAUTH_DEFAULT_VERSION = "1.0"; 8 8 -
lang/perl/OAuth-Lite/trunk/lib/OAuth/Lite/Consumer.pm
r5043 r7759 23 23 24 24 use Carp (); 25 use bytes (); 25 26 use URI; 26 27 use HTTP::Request; … … 511 512 } 512 513 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/; 519 516 520 517 my $auth_method = $self->{auth_method}; … … 547 544 } 548 545 } 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 } 549 551 my $req = HTTP::Request->new( $method, $url, $headers, $content ); 550 552 $req;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)