Changeset 4893
- Timestamp:
- 01/18/08 18:41:56 (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
r4759 r4893 1 1 Revision history for Perl extension OAuth::Lite. 2 3 1.06 Fri Jan 18 18:28:00 2008 4 - changed not to use syntax like 'any {...} qw/FOO BAR/'. 5 it seems to cause error on perl5.6 2 6 3 7 1.05 Thu Jan 17 10:15:00 2008 -
lang/perl/OAuth-Lite/trunk/lib/OAuth/Lite.pm
r4759 r4893 4 4 use warnings; 5 5 6 our $VERSION = "1.0 5";6 our $VERSION = "1.06"; 7 7 our $OAUTH_DEFAULT_VERSION = "1.0"; 8 8 -
lang/perl/OAuth-Lite/trunk/lib/OAuth/Lite/Consumer.pm
r4630 r4893 511 511 } 512 512 513 if (any { $method eq $_ } qw/POST PUT/) { 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) { 514 516 $headers->header('Content-Type', q{application/x-www-form-urlencoded}) 515 517 unless $headers->header('Content-Type'); … … 517 519 518 520 my $auth_method = $self->{auth_method}; 519 if (any { $method eq $_ } qw/GET HEAD DELETE/) {521 if (any { $method eq $_ } @non_send_data_methods) { 520 522 $auth_method = AUTH_HEADER 521 523 unless $auth_method eq URL_QUERY; … … 538 540 my $data = join('&', map(sprintf(q{%s=%s}, 539 541 encode_param($_), encode_param($extra->{$_}) ), keys %$extra)); 540 if (any { $method eq $_ } qw/POST PUT/) {542 if (any { $method eq $_ } @send_data_methods) { 541 543 $content = $data; 542 544 } else {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)