Skip to content

Commit

Permalink
Merge pull request liip#246 from eXtreme/aws-contenttype
Browse files Browse the repository at this point in the history
Set ContentType of AWS cache object
  • Loading branch information
havvg committed Sep 20, 2013
2 parents 5f07948 + 0b17a69 commit 51e2887
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Imagine/Cache/Resolver/AwsS3Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ public function store(Response $response, $targetPath, $filter)
{
try {
$storageResponse = $this->storage->putObject(array(
'ACL' => $this->acl,
'Bucket' => $this->bucket,
'Key' => $targetPath,
'Body' => $response->getContent(),
'ACL' => $this->acl,
'Bucket' => $this->bucket,
'Key' => $targetPath,
'Body' => $response->getContent(),
'ContentType' => $response->headers->get('Content-Type')
));
} catch (\Exception $e) {
if ($this->logger) {
Expand Down

0 comments on commit 51e2887

Please sign in to comment.