From bd7ea5adc09ede175df3438193ac2403b12bc839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gaul?= Date: Tue, 19 Aug 2014 01:14:58 +0200 Subject: [PATCH] files_extern: remove empty Body and ContentLength in Amazon S3 mount fixes #10501 --- apps/files_external/lib/amazons3.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index 3b0ae5bbe0dc..815a383d7f46 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -128,9 +128,7 @@ public function __construct($params) { $result = $this->connection->putObject(array( 'Bucket' => $this->bucket, 'Key' => $this->cleanKey('.'), - 'Body' => '', - 'ContentType' => 'httpd/unix-directory', - 'ContentLength' => 0 + 'ContentType' => 'httpd/unix-directory' )); $this->testTimeout(); } @@ -147,9 +145,7 @@ public function mkdir($path) { $result = $this->connection->putObject(array( 'Bucket' => $this->bucket, 'Key' => $path . '/', - 'Body' => '', - 'ContentType' => 'httpd/unix-directory', - 'ContentLength' => 0 + 'ContentType' => 'httpd/unix-directory' )); $this->testTimeout(); } catch (S3Exception $e) {