Skip to content
Snippets Groups Projects
Commit 0d0c9d0b authored by André Gaul's avatar André Gaul Committed by Vincent Petry
Browse files

files_extern: remove empty Body and ContentLength in Amazon S3 mount

fixes #10501

Conflicts:
	apps/files_external/lib/amazons3.php
parent 3427976b
No related branches found
No related tags found
No related merge requests found
...@@ -181,9 +181,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { ...@@ -181,9 +181,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
$this->connection->putObject(array( $this->connection->putObject(array(
'Bucket' => $this->bucket, 'Bucket' => $this->bucket,
'Key' => $path . '/', 'Key' => $path . '/',
'Body' => '', 'ContentType' => 'httpd/unix-directory'
'ContentType' => 'httpd/unix-directory',
'ContentLength' => 0
)); ));
$this->testTimeout(); $this->testTimeout();
} catch (S3Exception $e) { } catch (S3Exception $e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment