Skip to content

Commit

Permalink
Merge pull request #1 from dcmexy/master
Browse files Browse the repository at this point in the history
filter out empty headers
  • Loading branch information
tamasmazuk authored Aug 28, 2023
2 parents c024735 + f566d66 commit a91f1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S3.php
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ public static function __getSignatureV4($amzHeaders, $headers, $method, $uri, $p

// CanonicalHeaders
foreach ($headers as $k => $v)
$combinedHeaders[strtolower($k)] = trim($v);
if (!empty($v)) $combinedHeaders[strtolower($k)] = trim($v);
foreach ($amzHeaders as $k => $v)
$combinedHeaders[strtolower($k)] = trim($v);
uksort($combinedHeaders, array('S3', '__sortMetaHeadersCmp'));
Expand Down

0 comments on commit a91f1c1

Please sign in to comment.