mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
always set Key field in headObject
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
06b59b5002
commit
4bc357d1ce
1 changed files with 3 additions and 1 deletions
|
|
@ -154,6 +154,9 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
}
|
||||
}
|
||||
|
||||
if (is_array($this->objectCache[$key]) && !isset($this->objectCache[$key]["Key"])) {
|
||||
$this->objectCache[$key]["Key"] = $key;
|
||||
}
|
||||
return $this->objectCache[$key];
|
||||
}
|
||||
|
||||
|
|
@ -345,7 +348,6 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
if ($object === false) {
|
||||
return false;
|
||||
}
|
||||
$object["Key"] = $path;
|
||||
$stat = $this->objectToMetaData($object);
|
||||
}
|
||||
$stat['atime'] = time();
|
||||
|
|
|
|||
Loading…
Reference in a new issue