diff --git a/src/Signature/S3SignatureV4.php b/src/Signature/S3SignatureV4.php index 1055ce79bb..cfd8ed2bd8 100644 --- a/src/Signature/S3SignatureV4.php +++ b/src/Signature/S3SignatureV4.php @@ -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 */