Skip to content

Commit

Permalink
A fix to make sure that ua.append does not get put into the DynamoDB …
Browse files Browse the repository at this point in the history
…request body.
  • Loading branch information
jeremeamia committed Nov 17, 2014
1 parent e0b8d72 commit 1c64304
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Aws/DynamoDb/DynamoDbCommand.php
Expand Up @@ -11,6 +11,20 @@
*/
class DynamoDbCommand extends JsonCommand
{
protected function build()
{
// Remove the values that should be appended to the user agent.
// (Note: Because validation is off, this doesn't happen automatically.)
$uaAppend = $this['ua.append'];
unset($this['ua.append']);

// Build the request.
parent::build();

// Put the values back, so the UA listener add them to the UA header.
$this['ua.append'] = $uaAppend;
}

protected function validate()
{
// No validation for DynamoDB ever. This is because the service
Expand Down

0 comments on commit 1c64304

Please sign in to comment.