Skip to content

Commit

Permalink
Merge pull request jadeallenx#6 from clkao/timestamp
Browse files Browse the repository at this point in the history
timestamp fixes RT #75194
  • Loading branch information
jadeallenx committed Feb 21, 2012
2 parents da6914d + 1cc21c0 commit 05fdca4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Net/Amazon/EC2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,11 @@ sub _sign {
my %args = @_;
my $action = delete $args{Action};
my %sign_hash = %args;
$self->_clear_timestamp;
my $timestamp = $self->timestamp;

$sign_hash{AWSAccessKeyId} = $self->AWSAccessKeyId;
$sign_hash{Action} = $action;
$sign_hash{Timestamp} = $self->timestamp;
$sign_hash{Timestamp} = $timestamp;
$sign_hash{Version} = $self->version;
$sign_hash{SignatureVersion} = $self->signature_version;
my $sign_this;
Expand All @@ -199,7 +200,7 @@ sub _sign {
Action => $action,
SignatureVersion => $self->signature_version,
AWSAccessKeyId => $self->AWSAccessKeyId,
Timestamp => $self->timestamp,
Timestamp => $timestamp,
Version => $self->version,
Signature => $encoded,
%args
Expand Down

0 comments on commit 05fdca4

Please sign in to comment.