Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/Signature/S3SignatureV4.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,13 @@ public function presign(
if (!$request->hasHeader('x-amz-content-sha256')) {
$request = $request->withHeader(
'X-Amz-Content-Sha256',
$this->getPresignedPayload($request)
SignatureV4::UNSIGNED_PAYLOAD
);
}

return parent::presign($request, $credentials, $expires, $options);
}

/**
* Override used to allow pre-signed URLs to be created for an
* in-determinate request payload.
*/
protected function getPresignedPayload(RequestInterface $request)
{
return SignatureV4::UNSIGNED_PAYLOAD;
}

/**
* Amazon S3 does not double-encode the path component in the canonical request
*/
Expand Down