Skip to content

Commit

Permalink
amazon_s34_sign() to include x-amz-* headers.
Browse files Browse the repository at this point in the history
See: #440
  • Loading branch information
jaswsinc committed Jan 8, 2015
1 parent 3a041f0 commit 4e3237f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s2member/includes/classes/files-in.inc.php
Expand Up @@ -705,7 +705,7 @@ public static function amazon_s34_sign($domain = 's3.amazonaws.com', $location =

foreach($headers as $_key => $_value)
if(is_string($_key) && ($_key = strtolower($_key)))
if(in_array($_key, array('host', 'content-type'), TRUE))
if(in_array($_key, array('host', 'content-type'), TRUE) || stripos($_key, 'X-Amz-') === 0)
{
$s3_canonical_headers .= strtolower($_key).':'.trim($_value)."\n";
$s3_canonical_header_keys[] = strtolower($_key);
Expand Down

0 comments on commit 4e3237f

Please sign in to comment.